solution for word count