Count the occurrence of words using TreeMap Collection