Submitted WordCounter implementation