The confusion between amount and number is common but can be easily overcome. They are not interchangable - their use relates to countable and uncountable nouns.
Amount
Use amount is with uncountable nouns and abstract nouns:
amount of time
amount of snow
amount of noise
amount of love (abstract noun)
amount of pride (abstract noun)
Number
Use number with countable nouns (things that can be counted):
number of cars
number of chairs
number of houses
number of topics
Although it is grammatically correct to say a number of people, in casual English it is common to hear the amount of people. The amount of people is frequently used but not actually right. Be aware of this especially in formal situations or English language tests.
Now decide if these sentences need amount or number: