textTokenizeAndCount function

Tokenize and count