Amount is for things you cannot count. For example, an amount of water. If you can count it, use number of.
HOWEVER, English is not a dead language, so the definition of amount may just be changing.