Solution for WordCounter problem in node