getFrequencyMap