update word count