added word count validation