In 2024, the internet found the simplest way to humiliate the planet's most advanced artificial intelligence. No quantum physics questions, no logic puzzles: you just had to ask "how many Rs are in the word strawberry?".
The answer, with absolute certainty: two.
There are three (strawberry, count them yourself, I'll wait). And the funny thing is that if you pointed out the mistake, the AI would often apologize and… count two again. The same machine that writes code, summarizes contracts, and passes university exams tripped over something a six-year-old does with their finger.
The story became so famous that when, in July 2024, the press discovered the code name of OpenAI's new "reasoning" model (released in September as o1), that name was none other than Strawberry (coincidence? Let's just say they have a sense of humor in San Francisco).
How can such a smart machine make such a stupid mistake? Short answer: because it has never seen a letter in its life.
AI doesn't read letters
We read letters that make up words. A language model doesn't: it reads tokens.
Before reaching the model, every text is broken into blocks: sometimes a whole word, sometimes part of a word, sometimes a single character. "Strawberry", for example, can become something like "str" + "aw" + "berry", and each of those pieces is turned into a number. The model only sees the sequence of numbers, like 496, 675, 15717 (the actual numbers vary from model to model).
Now, asking a model how many Rs are in "strawberry" is like asking you how many brushstrokes are in the Mona Lisa while looking at a pixelated photo: you know very well what it is, you know everything about its history, but the level of detail you need to answer simply doesn't reach you. The model knows what a strawberry is, knows how to write it in twenty languages, but it doesn't see the individual letters inside the block "berry": it has to infer them, and sometimes it infers them incorrectly.
In short: artificial intelligence models don't read letters but tokens, which are pieces of words turned into numbers. This is why they can fail at trivial tasks like counting letters or making rhymes, even though they are very good at reasoning about concepts. Tokens are also the unit used to measure limits and costs: more tokens, more expense and more slowness.
What exactly are tokens?
A token is the unit of text that a language model reads and produces: a fragment that can be a word, a syllable, part of a word, or a character.
Reading letter by letter would make every text extremely long to process; using only whole words would make the vocabulary infinite (think of all the Italian conjugations: mangio, mangiavamo, mangerebbero…). Tokens are the compromise: common words remain whole, rare ones are broken into reusable pieces.
A rule of thumb that OpenAI itself suggests: in English, one token corresponds on average to about four characters, or roughly three-quarters of a word (the official guide).
Tokenizers are built mainly on English texts, so English words tend to remain whole, while Italian is often broken into multiple pieces. The same concept, written in Italian, can cost more tokens than in English (yes, here too we pay the language tax, like when you search for a tutorial and they are all in English).
You can see it with your own eyes: paste a sentence into the OpenAI tokenizer and watch how it breaks it into pieces. Try "precipitevolissimevolmente", you'll have fun.
Why do tokens determine how much you pay?
For language models, everything is measured in tokens: limits, speed, and especially price.
AI providers charge per million tokens: those you send to the model (the prompt, documents, instructions) and those the model produces (the response), usually at different prices. A quick prompt costs a fraction of a cent. But an agent that works all day on emails, documents, and customer history grinds through millions of tokens, and there the difference between a well-designed system and a poorly designed one becomes a budget item.
Remember the videotape story in the article about memory? Every time an AI rereads the entire conversation, you pay for all those tokens again. An agent that, at every step, rereads a two-hundred-page manual from scratch "just to be safe" is like an employee who, before answering every email, rereads the entire company handbook: diligent, but ruinous.
The same applies to speed: the model produces the response one token at a time (that's why in chats you see the text appear in chunks, it's not a theatrical effect). Responses longer than necessary cost more and arrive later.
So AI is stupid?
No. It is intelligent in a different way from ours, and its mistakes are a clue to how it works.
The strawberry test doesn't prove that AI doesn't know how to reason: it proves that it has a specific blind spot, due to how it sees text. Other tasks that suffer from the same problem: counting exact words or characters, reversing a word letter by letter, making perfect rhymes, certain calculations with very long numbers (even numbers are broken into tokens!).
More recent models handle it much better: some "reason" step by step before answering and break down the word letter by letter; others, much more cleverly, when they have to count, write a small program and run it. Which is exactly what you would do if you had to count the Rs in an entire book: you don't do it by eye, you use Ctrl+F.
In a company, a good agent is not the one that knows how to do everything on its own, it's the one that knows when to use the right tool. Calculations, counts, dates, invoice totals: they are done by a calculator, a database, a program, not by the model's "glance". It is one of the principles with which we build SalesForB agents: the model reasons and decides, the tools count.
In summary
From the strawberry to OpenAI's code name, from pieces of "berry" to the bill: AI doesn't see letters, it sees tokens, and almost everything that surprises you about its behavior (funny mistakes, limits, costs, slowness) stems from there. Understanding tokens means understanding why an agent costs what it costs and why certain tasks should be entrusted to precise tools instead of the model's intuition.
The next time someone tells you that AI will replace everyone, ask them to count the Rs in "red ferrari". If they answer correctly, ask them why: you'll come out looking like the one who knows their stuff anyway.
Frequently Asked Questions
How many words is a token? In English, on average, one token corresponds to about three-quarters of a word. In Italian, you usually need a few more tokens for the same amount of text, because tokenizers are built mainly on English.
Why does AI fail to count letters? Because it doesn't read letters but tokens, which are pieces of words turned into numbers. It doesn't see individual letters inside a token directly and has to infer them.
How is the cost of an AI calculated? Providers charge per million tokens, distinguishing between input tokens (prompts, documents, instructions) and output tokens (responses). The actual cost depends on how much text the agent reads and writes at each step.
How can you reduce the costs of an AI agent? By having it read only what is necessary instead of entire archives, avoiding resending the entire conversation every time, and entrusting calculations and counts to external tools instead of the model.
Sources
- OpenAI Help Center, Understanding and counting tokens
- OpenAI, Tokenizer (interactive tool)
- Reuters, Exclusive: OpenAI working on new reasoning technology under code name 'Strawberry', July 2024
- Axios, OpenAI releases "Strawberry" model with better reasoning, September 2024
Related Articles
If you are evaluating a business project, learn more about what affects the cost of a custom AI agent.