Add word counter to hashmap