aifree.dev

Why does it miscount the r’s in "strawberry"?

Tokens · Beginner · 3 min · tokens, llm

A token is the unit of text a language model actually reads: a word, part of a word, or punctuation, each turned into a number. Models count, price and limit everything in tokens, and never see the letters inside one.

Before you start: could you explain this to a friend?

1 = not at all · 5 = easily

  1. 1 Guess first

    How many pieces is "strawberry" to the model?
  2. 2 Look

    "strawberry", two ways

    1 / 3
    s
    t
    r
    a
    w
    b
    e
    r
    r
    y
    letters10
    r's3
    pieces—

    Your eyes: ten letters, three of them r. Easy.

    Switch eyes: the letters you count vanish, and what is left is numbered pieces with the r’s hidden inside.

  3. Before anything else, text is chopped into pieces by a fixed recipe and each piece becomes a number. Common words stay whole; rare words get cut. The model never sees letters — so "count the r’s" is a question it has to answer blind.

  4. 4 You are the model

    Type any word. Guess how many pieces the model will see, then switch eyes and compare. Try your name, then a long rare word.

    r
    a
    s
    p
    b
    e
    r
    r
    y
    letters9
    r's3
    pieces—
    Guess how many pieces the model sees, then switch eyes.
  5. 5 Check

    Why can it miscount the r’s?
  6. 6 Say it back

  7. 7 Mission · 2 min

    Ask a free chatbot how many r’s are in "strawberry". Then ask it to spell the word with one letter per line first and count again. Watch the second answer land.

Three quick ones

Drawn at random from this lesson's pool; different next time.

Done?

Now: could you explain this to a friend?

1 = not at all · 5 = easily

Answer the three quick ones first.

Sources

Published Oct 20, 2026 · updated Oct 20, 2026

Embed this

Paste this into a blog post or course page: the lesson's main picture in an iframe, with a link back to the full lesson.

<iframe src="https://aifree.dev/embed/explain/tokens" width="100%" height="620" style="border:0;max-width:720px" title="Why does it miscount the r’s in &quot;strawberry&quot;? (aifree.dev Explain)" loading="lazy"></iframe>
<p><a href="https://aifree.dev/explain/tokens">Why does it miscount the r’s in &quot;strawberry&quot;? Interactive lesson on aifree.dev</a></p>

Never miss new offers and news

New tools, credits, and AI news are added regularly. Pick how you want to hear about them.

Telegram channel
Join @aifree_dev and get new free AI offers and news right in your Telegram feed.
Browser notifications
Turn on push notifications and get an alert on this device whenever something new is posted. No account needed.
Email newsletter
A weekly digest of new, changed and expiring free AI offers. Double opt-in, one-click unsubscribe.

Unsubscribe anytime. Privacy

Frequently asked questions

What is aifree.dev?

aifree.dev helps everyone access AI through a curated directory of free AI tools, API credits, free tiers, and startup programs for coding, image, voice, video, and students - verified regularly.

How are offers presented?

Each offer includes its access details, free models when available, and expiration information when provided. Limited-time deals stay visible so they are easy to compare.

Do education and startup programs need verification?

Yes. Providers usually ask students to verify their status with a school email, student ID, or a program like the GitHub Student Pack, and ask startups to verify company details such as age, funding, or website. Check each offer’s claim page for the exact requirements.

What kinds of free AI offers are listed?

Free tiers and free trials from AI providers, free API credits, startup and student programs, and free tools for coding, image generation, voice, and video.

How can I suggest a tool or report a broken link?

Use the submit form: paste the offer page URL and a short note. A person checks every submission before anything is listed. Broken links and changed terms go through the same form.

+

Know a good one?

Tell us about an AI tool worth knowing. Found a broken link? We want to hear that too.

Submit an offer