word count in input