Count the Tokens
Token problems: 1 of 20
Token problems: the workbook
Count the Tokens
How does a model read text? Not word by word, but token by token. Splitting on spaces is the simplest tokenizer: one word, one token, one box. Every instruction you send to an agent gets split this way before the model sees it.
Problem
You type the command fetch the latest price data into a task-planning agent. The agent splits the text on spaces, counting each word as one token. How many tokens does it count?
Write each token in a box
Count the filled boxes
Practice 1
You send the sentence Agents think step by step to an AI agent. The agent splits the text on spaces, counting each word as one token. How many tokens does it count?
Write each token in a box
Count the filled boxes
Practice 2
You send the instruction plan and run the next step to an automation agent. The agent splits the text on spaces, counting each word as one token. How many tokens does it count?
Write each token in a box
Count the filled boxes
Next:
2. Subword Splitting







