Can ChatGPT count words?
Ask a chatbot to write "exactly 150 words" or to count the characters in your bio, and you'll often get a confident answer that's wrong. This isn't a bug in one product. It comes from how language models read text.
Why AI struggles to count
Language models don't see letters or words the way you do. They read text in tokens, chunks that can be a whole word, part of a word or a single punctuation mark. "Counting" is a guess based on patterns, not arithmetic. That's why the famous question "how many r's are in strawberry?" tripped up chatbots for years. OpenAI said it fixed that specific case in April 2026, and users promptly found the same mistake with "cranberry."
What the research shows
| Task | How reliable AI is | Evidence |
|---|---|---|
| Counting letters or characters | Poor | Models averaged 43.6% accuracy on character-level tasks in the CharBench benchmark (2025) |
| Writing to a word target | Rough at best | In LIFEBench (2025), accuracy dropped sharply for longer targets, and models usually wrote too little |
| Counting words in your text | Often off by several percent | Same token problem; worse for long text |
| Counting with code (Python) | Exact | When a chatbot actually runs code, the count is calculated, not guessed |
The last row is the catch. Some chatbots can run code, but they don't always choose to, and you can't always tell whether they did.
When this matters
- College essays: the Common App box rejects anything over 650 words. A draft an AI calls "about 600 words" may not be.
- Social posts and bios: an X post or Instagram bio that's a few characters over simply won't post.
- Assignments with a word range: teachers and journals count with real software.
How to get an exact count
Paste the AI's output into a real counter like the one below. It counts in your browser using exact rules, so the number doesn't change if you ask twice. If you need to hit a target, have the AI write the draft, count it here, then ask it to cut or add a specific number of words.
Comments
Loading comments…