first iteration at anagram
refactor WordCounter to use different hash constructor