The amount of people who had spilled into the public square to witness the orator was staggering.
How do we improve the sentence?
The number of people who had spilled into the public square to witness the orator was staggering.
Whenever you are dealing with a noun that is countable, 'number' is needed. 'Amount' is used to modify an abstract noun, which is not countable.