WORDS-167: refined WordCounter and WordCounterTest (38, 8) // todo: test for null and test for empty