Calculate the number of language model tokens for a string | Hacker News Reader