WordCounter implemented