improve wordCount