Here's an easy way to calculate the number of language model tokens for a string.