word count solution