word count and validation