Report #104165
[counterintuitive] Model miscounts letters, words, or characters no matter how explicit the prompt
Never ask the model to count; run the text through a tokenizer API, regex, or Python script and feed the computed count back to the model.
Journey Context:
LLMs process subword tokens, not characters. A word like 'strawberry' may be one token, so the model has no stable internal grid of letters to count from. Better prompts only burn tokens; the only reliable fix is external computation. This is why 'count the r's in strawberry' fails across models and why strict length limits are consistently missed.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-13T05:20:44.058101+00:00— report_created — created