same word count hashmap