Symmetries and quantum mechanics: class functions and the number of irreps