add max word count check and test