Why AI Gets Counting and Math Wrong, and How to Check It

· 5 min read

An assistant reads text as tokens, pieces that are often longer than one letter, so it does not see a word as a row of letters. Unless it hands a sum to a tool such as code or a calculator, it writes the answer as text, and research papers disagree about how much of the letter-counting trouble comes from the tokens, so the dependable move is to check.

We have not run any assistant on the examples below, and assistants change, so this guide does not say which ones get them right.

Why can't AI count the letters in a word?

Hugging Face's course page on tokenizers says: "Models can only process numbers, so tokenizers need to convert our text inputs to numerical data." A word may be one piece or more than one. What a token is covers the basics and gives the usual explanation for spelling errors, which the preprints below test.

Tokens are a commonly cited cause, not the only one, and three preprints we read differ. One preprint, whose title begins "The Strawberry Problem", names tokenization as the fundamental limit. CharBench finds tokenization properties weakly tied to counting accuracy, with word length and the true count mattering more. A third says models recognize letters but cannot count them, with errors tracking words where a letter repeats. Written out, the check is easy: strawberry is s, t, r, a, w, b, e, r, r, y, so it has three r's.

Why does AI get math wrong, and why are long sums worse?

A calculator or spreadsheet runs the same fixed procedure every time, which an assistant's answer does not guarantee. Three findings from the research, none settled:

  • Setting up is not solving. A 2022 preprint on program-aided models says models often make logical and arithmetic mistakes in the solution step even when the problem is broken down correctly, and describes handing that step to a Python interpreter.
  • How one model adds. Anthropic's research post Tracing the thoughts of a large language model, published in March 2025, says its model was not designed as a calculator, adds along parallel paths and, asked how it added two numbers, describes the school method of carrying the one. That is research on one model; by its account, an explanation can differ from how the answer was produced.
  • Length makes it worse. A 2023 study of compositional tasks, which included multi-digit multiplication, reports that accuracy can decay rapidly as tasks grow more complex. Newer models may differ, so a right short sum is a hint, not a license to trust a long one.

Can I trust AI with calculations if it can run code?

Code can do the arithmetic. Whether an assistant runs it is for its maker's pages to say; three makers' developer pages (not their chat apps) say:

  • Anthropic. Anthropic's code execution tool page lists "Non-trivial math" among requests where Claude runs code and "Simple arithmetic and well-known math facts" among those it answers directly, and says to ask explicitly for a borderline case, for example "run code to verify this".
  • Google. Google's code execution page in its Cloud documentation says the Gemini API provides code execution as a tool and that, after you add it, the model decides when to use it.
  • OpenAI. OpenAI's Code Interpreter page says the most explicit way to invoke the tool is to ask for "the python tool".

A tool applies fixed rules to the arithmetic, not to the question: if the code reads the wrong column, the answer is wrong the same way every time. For ChatGPT, OpenAI's help article on data analysis (showing "Updated: 2 days ago" on 4 December 2026; the wording may have changed) says that when ChatGPT uses Python for analysis, you should review the generated code, outputs and assumptions. A claim to have calculated something is not proof that the work was done, so ask to see the code and its output. How an AI agent works explains where tools fit.

How do I check an AI's count or total?

Treat the number as a claim, as how to fact-check an AI answer explains. Asking for the steps can help: a 2022 preprint on chain-of-thought prompting reports that prompts containing worked steps improved arithmetic results on the models it tested. It is not a fix: the setup can be right and the last step wrong. Check the result itself:

  • Estimate first. Round each figure and work a rough total; a result far from it means a slip.
  • Use a tool you control. A calculator, spreadsheet or code you can read gives the same answer every time.
  • Use a second method. Add in another order, compare row sums with column sums, or count the items on the original.
  • Count letters on the page. Write the word one letter per line, or use an editor's find feature if it reports matches.

An invented receipt: 3 index cards at 1.80, 2 rolls of tape at 2.45 and 1 stapler at 7.30. The lines are 5.40, 4.90 and 7.30, so the total is 17.60. The estimate 3 x 2 + 2 x 2.5 + 7 gives 18, so 17.60 is plausible; adding each unit price once, without the quantities, gives 11.55, far off.

Repeated letters, which one preprint above tied to errors, make good checks: possessions has s 5 times and o twice; bookkeeping has o, k and e twice each.

How do I check a word limit?

Suppose a reply says this invented notice is 28 words: "Free seed swap at the library hall on Saturday morning. Bring spare seeds, labeled jars and a friend. Tea provided, please bring your own cup." Paste it into your editor's count and the count wins: it is 25 words and 142 characters with spaces (counted with Python).

Each counter has its own rules: Google Docs help says its word count applies to everything except headers, footers and footnotes unless you select a section. Ask which counter the limit's owner uses, and run that one.

What should I watch in a spreadsheet or an invoice?

If an assistant writes or explains a spreadsheet formula, check which function does the counting. Microsoft's help pages say LEN counts characters including spaces, COUNT leaves out empty cells and text and points to COUNTA for counting text, and SUM ignores text values. Analyzing a spreadsheet with AI safely covers row counts and numbers stored as text.

On invoices, a discount and a tax can be applied in either order, per line or on the total, and rounding each line can differ slightly from rounding the total. A photo or scan can misread digits first; what multimodal AI is covers handwriting. Rules differ by place; this is not legal or accounting advice, so check your own.

Where NAMELESS stands

No launch date is set for NAMELESS, our own model, which is built on its own architecture and still in training. Stronger logic and reasoning is a goal, not a result, and every check above would still apply to any assistant. Join the waitlist if you want to hear when that changes.

Product and company names in this article belong to their owners and are used only to describe them. NAMELESS is not affiliated with or endorsed by them.

Keep reading

All posts