Count the Tokens
Token problem problems: 1 of 20
Token problems: the series
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?
Step 1: Write each token in a box
Step 2: 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?
Step 1: Write each token in a box
Step 2: 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?
Step 1: Write each token in a box
Step 2: Count the filled boxes
Next:







