Changed the Frequency.count to Frequency.map that is a hashmap of
ArrayList<String>,Count