Why Count Anything pushes AI toward reliable image counting
Count Anything is an AI model designed to count and label objects in many kinds of images using a text prompt. It combines box-based detection for larger objects with point-based detection for small, crowded targets, but it still has limits in ambiguous and extremely dense scenes.
AI systems can now interpret images, read text from photos, and explain charts, but counting what appears in an image remains a difficult visual task. Count Anything, a new model from researchers at Tsinghua University and other institutions, is built around that specific problem: counting objects across very different image types from a simple text prompt.
“This is mainly a technical reliability advance in visual counting, with only mild potential for expanded monitoring or high-stakes automated analysis.”Why it scores Neutral
The goal is broad rather than narrow. Instead of building one system for crowds, another for satellite imagery, and another for medical scans, Count Anything aims to identify and count many object types across many visual domains.
Why counting is harder than it looks
Counting objects in an image sounds straightforward, but the source article makes clear that reliability is the challenge. A model may work on large, visible objects and fail when targets are tiny, overlapping, or packed tightly together.
That matters because image counting can support real decisions. The article points to examples such as a doctor reading a scan, a farmer estimating crop yields, or a city planner analyzing traffic. In each case, a count that is badly wrong can change the interpretation of the image.
The difficulty is that these examples do not look alike. Heads in crowds, cars in satellite photos, cells in medical scans, and bacterial colonies in the lab all require visual recognition, but each presents a different kind of counting problem.
Until now, the article says, these tasks have typically required specialized systems. Count Anything is an attempt to make one model handle a wider range of scenes by combining language guidance with visual counting.
How Count Anything combines two counting methods
The core design is built around two complementary approaches. One part of the system handles large and clearly visible objects by drawing bounding boxes around them. Another part handles small, dense targets by placing a point on each detected object.
This split is important because not every object is best represented the same way. A large vehicle or person may be easier to mark with a box, while tiny cells or tightly packed colonies may be better represented with individual points.
After both counters make their predictions, Count Anything merges the results. The system uses a rule to avoid counting the same object twice: when both counters identify the same target, only the prediction with higher confidence is kept.
The model builds on Meta called SAM3, a pretrained model that can process images and text together. Count Anything adds small adapter components for the counting task, rather than retraining the entire model from scratch.
The user-facing concept is simple. A person gives the system a text prompt describing what to count, and the model marks every counted object in the image. The challenge is making that work not just on everyday photos, but also on specialized imagery.
The CLOC dataset gives the model a wider training base
To train a model for such broad use, the researchers created a dataset called CLOC. The article says existing public datasets were often built for one purpose, such as tumor cells or satellite images, which made them too narrow for a general text-guided counter.
The researchers merged those datasets and cleaned up conflicting labels. They released the result as CLOC, which they describe as the largest dataset for text-guided counting to date.
CLOC contains about 220,000 images, 619 categories, and 15 million labeled objects across six domains. Those domains are:
- Everyday photos
- Satellite and drone imagery
- Medical tissue samples
- Microscopic cell images
- Agricultural images like wheat ears
- Bacterial culture photos
This range is central to the model's purpose. If a counting system is meant to handle prompts across visual settings, it needs examples that go beyond one kind of object, one camera perspective, or one scientific field.
Where the model performs well
In the team's own comparison tests, Count Anything outperformed competing systems including CountGD, CLIP-Count, and Grounding DINO, according to the paper. The article says Count Anything was ahead on average across the team's benchmark.
The reported error is about nine objects per queried category in an image. The best competing model is off by more than twice that. That result suggests the combined box-and-point design helps across diverse image types.
At the same time, Count Anything is not the best answer for every counting problem. For pure crowd counting, the article says it remains competitive but does not quite match the best specialized systems.
That distinction is important. A general-purpose model can be more flexible, but a specialized model may still win in a narrow task it was optimized for. Count Anything's value is its attempt to cover many categories and image domains through one text-guided system.
The limits show why visual counting remains unsolved
The researchers acknowledge that Count Anything still struggles in some cases. Ambiguous terms can cause missed objects or misclassification. Highly specialized language can also create problems when the model does not connect the prompt cleanly to the right visual targets.
Extremely dense scenes remain difficult as well. When objects overlap heavily or are packed together, it can be hard to tell whether two predictions refer to the same object or to two different objects. That problem directly affects the model's final count.
The article also connects this broader difficulty to the BabyVision benchmark. In tests with 80 children, most frontier models scored below the average three-year-old. Gemini 3 Pro barely hit 50 percent, while adults scored above 94 percent.
The counting gap was especially clear with occluded 3D blocks. The best model managed just 20.5 percent, while humans solved it without a single error.
Count Anything therefore points in two directions at once. It shows meaningful progress toward text-guided AI counting across image types, supported by a large custom dataset and a hybrid detection strategy. It also shows that basic visual reasoning, especially in crowded or ambiguous scenes, remains a hard problem for modern AI.
Read next