A question, answered
Why do chatbots sometimes miscount the letters in a word?
Partly because the model never sees the letters. Text is split into tokens before the model reads it, so a word arrives as one or a few multi-letter pieces, and counting the letters inside them means recalling how each piece is spelled, not looking at it. In two encodings from tiktoken, a widely used open-source tokenizer library (github.com), which we ran on 4 October 2026, " strawberry" with its leading space is a single token; without the space it is three pieces, such as "str", "aw" and "berry", none of them a single letter. Counting is also hard for these models in its own right. One 2024 study found that models could recognize the letters in a word but often miscounted them, especially letters that appear more than twice, like the three r's in "strawberry" (Fu et al., arxiv.org). Many newer models get this right, especially models that reason before answering, or when the word is spelled out first. OpenAI's guide for its reasoning models calls “think step by step” unnecessary (OpenAI, checked November 2026), so ask instead for working you can check: the word one letter per line, then the count (see Ask for work you can check). Try the exercise Spell it out first.
Read next: Spell it out first