The word count problem