The Nilpotence Growth Theorem, and applications to dimensions of mod-p Hecke algebras