ntokens function

The number of tokens in a string or vector of strings