I pasted our list of November blog posts into our local AI and asked two plain questions: how many posts are there, and which days had no post? It said 30 posts and no empty days. I asked again, twice. Same answer both times.

The real answer is 49 posts and 12 days with none. A script with seven lines of code got both right in a tenth of a second.

If you ever ask AI how many, what's the total, or what's missing, this is the test worth running once.

The question

Every post on our site has a line in one file, with its date and its name. I pulled the 49 lines dated November 2026 and pasted them into a chat with the AI model that runs on a Mac in our office. Then I asked:

The list and the question
The first five of 49 lines from our blog's post list, and the two questions I asked.

Nothing tricky. One line per post, the date at the start of every line. A person with a pencil could do it in a few minutes.

Three runs, the same wrong answer

I sent the same list and the same question three times on December 3, 2026:

Three answers from our local AI
gemma e2b, running on our own Mac, December 3, 2026. Same list, same question, three runs.

Each run took between 11 and 15 seconds. Each run said there are 30 posts in the list and that there were no days in November with no post. Both parts were wrong, and they were wrong the same way every time.

That consistency is the trap. When three answers match, it feels checked. I saw the same thing when our AI gave the same price four times and was wrong every time. Matching answers tell you the model is steady. They don't tell you it's right.

The script

Then I wrote a short Python script that reads the same file:

The whole script
count_script.py, seven lines of Python.

It collects the dates it sees, counts the lines, and walks through November 1 to 30 looking for dates that never appear. Here is what it printed:

The script's answer
Run December 3, 2026, on the same 49 line list.

49 posts. 12 days with no post. It also listed the 12 dates. Total time, 0.105 seconds.

To check the script, I drew the month from the same list, one square per day with the number of posts on it:

November, day by day
Drawn from our post list. Red squares are days with no post.

You can count the red squares yourself. There are 12, including November 14 to 16 and November 18 to 21.

Why the AI got it wrong

A language model writes the next likely words based on what it has read. It doesn't keep a running tally as it reads down a list the way a script or a spreadsheet does. On a short list it often gets lucky. On 49 lines that look almost the same, our small model lost count and settled on a round number that sounded right.

Larger models may do better, and some chat tools run code behind the scenes. But you can't tell from the answer whether a model counted or guessed. The only way to know is to check it against a count you trust, and once you have that count, you don't need the model's.

What goes where

I now split the work like this:

  1. Counting, adding up and finding gaps go to a script or a spreadsheet. How many orders this week, which invoices are unpaid, which days we missed, the total of a column. A COUNTIF in a spreadsheet does the same job as my script.
  2. AI writes the words around the answer. Once the script says 49 posts and 12 empty days, AI can draft the summary, the email or the report. I paste in the numbers and tell it to use only those. This is the same split I use for prices and totals.
  3. If I can't write the script, AI can. Asking an AI to write a short counting script and then running that script on the real file is a very different thing from asking it for the count. The script either counts right or it doesn't, and you can test it.

How to test it on your own work

  1. Pick a list you already know the answer for. Last month's orders, a list of customers, a column you've already added up.
  2. Ask your AI tool the count the way you normally would.
  3. Compare. If it's off, you've learned where not to use it.
  4. Then ask it for a formula or a script that does the count, and run that on the same list. Check it once against the known answer.
  5. Keep the formula or script next to the report, so anyone can run it again next month.

A count you can run again beats a count that sounds right.

What this doesn't show

This is one list, one question and one small model running on a Mac, three runs on one evening. A larger cloud model might get this exact list right. The lesson isn't that AI can't count. It's that a chat answer gives you no way to see whether it counted, and a script does.

If you want to see how a weekly check catches this kind of mistake before it reaches anyone, writing down every AI mistake for a week is the habit that does it.

Get the SOPs

SOP 20 in my free pack is this split, step by step: what goes to a script, what goes to AI, and how to test both. SOP 14 covers AI and numbers. Read them on the example AI SOPs page or download the PDF from there.

Sources and local evidence

  • Our post list: the blog's own posts.json, the 49 entries dated November 2026, pulled December 3, 2026.
  • The AI runs: gemma e2b on our Mac through LiteRT LM, the same prompt three times, December 3, 2026, output saved.
  • The script and its output: count_script.py, run December 3, 2026, output saved.
  • Background photos in the reel: Mikhail Nilov on Pexels (https://www.pexels.com/photo/person-in-white-dress-shirt-holding-black-pen-and-black-calculator-8297150/); PNW Production on Pexels (https://www.pexels.com/photo/pencil-on-white-paper-8250866/). The photos set the scene only. Every log and terminal screen in the reel is real output.

Related

Read next: Our AI job warned us its login would expire. The next night it did.