WORDS-415: Functional: Count words in a plain text + Add equals to ErrorDataContainer + Some refactoring
(cherry picked from commit db2ea88)