WORDS-399 - Acceptance: Count words in a plain text, some refactoring