Recent studies have indicated that animals have a greater grasp of basic math than previously believed (one 2008 study demonstrated the ability of some birds to grasp quantities up to 12). American black bears in particular seem to be more able to better gauge quantities than expected.
A study published in Animal Behavior presented bears with touchscreen computers showing groupings of dots; some groupings were dense and some were diffuse. All of the bears tested were able to indicate which screen showed more dots, regardless of how they were grouped. One was even able to do so when the dots were moving. According to study researchers, the performance was similar to that of primates, who are often used as the yardstick for sophistication among land mammals.