count occuring bytes
type of numFreqs was too narrow