Characterization of table algebras by their multiplicities