Write word count