Number sense in animals is the ability of creatures to represent and discriminate quantities of relative sizes by number sense. It has been observed in various species, from fish to primates. Animals are believed to have an approximate number system, the same system for number representation demonstrated by humans, which is more precise for smaller quantities and less so for larger values. An exact representation of numbers higher than three has not been attested in wild animals, but can be demonstrated after a period of training in captive animals.

In order to distinguish number sense in animals from the symbolic and verbal number system in humans, researchers use the term numerosity, rather than number, to refer to the concept that supports approximate estimation but does not support an exact representation of number quality.

Number sense in animals includes the recognition and comparison of number quantities. Some numerical operations, such as addition, have been demonstrated in many species, including rats and great apes. Representing fractions and fraction addition has been observed in chimpanzees. A wide range of species with an approximate number system suggests an early evolutionary origin of this mechanism or multiple convergent evolution events. Like humans, chicks have a left-to-right mental number line (they associate the left space with smaller numbers and the right space with larger numbers).

Early studies

At the beginning of the 20th century, Wilhelm von Osten famously, but prematurely, claimed human-like counting abilities in animals on the example of his horse named Hans. His claim is widely rejected today, as it is attributed to a methodological fallacy, which received the name Clever Hans phenomenon after this case. Von Osten claimed that his horse could perform arithmetic operations presented to the horse in writing or verbally, upon which the horse would knock on the ground with its hoof the number of times that corresponded to the answer. This apparent ability was demonstrated numerous times in the presence of the horse's owner and a wider audience, and was also observed when the owner was absent. However, upon a rigorous investigation by Oskar Pfungst in the first decade of 20th century, Hans' ability was shown to be not arithmetic in nature, but to be the ability to interpret minimal unconscious changes in body language of people when the correct answer was approaching. Today, the arithmetic abilities of Clever Hans are commonly rejected and the case serves as a reminder to the scientific community about the necessity of rigorous control for experimenter expectation in experiments.

There were, however, other early and more reliable studies on number sense in animals. A prominent example is the work of Otto Koehler, who conducted a number of studies on number sense in animals between 1920s and 1970s. In one of his studies he showed that a raven named Jacob could reliably distinguish the number 5 across different tasks. This study was remarkable in that Koehler provided a systematic control condition in his experiment, which allowed him to test the number ability of the raven separately from the ability of the raven to encode other features, such as size and location of the objects. However, Koehler's work was largely overlooked in the English-speaking world, due to the limited availability of his publications, which were in German and only partially published during World War II.

The experimental setup for the study of numerical cognition in animals was further enriched by the work of Mechner and Platt and Johnson. In their experiments, the researchers deprived rats of food and then taught them to press a lever a specific number of times to obtain food. The rats learned to press the lever approximately the number of times specified by the researchers. Additionally, the researchers showed that rats' behavior was dependent on the number of required presses, and not for example on the time of pressing, as they varied the experiment to include faster and slower behavior on the rat's part by controlling how hungry the animal was.

Methodology Examining the representation of numerosity in animals is a challenging task, since it is not possible to use language as a medium. Because of this, carefully designed experimental setups are required to differentiate between numerical abilities and other phenomena, such as the Clever Hans phenomenon, memorization of the single objects or perception of object size and time. Also, these abilities are seen only from the past few decades and not from the time of evolution.

One of the ways that numerical ability is thought to be demonstrated is the transfer of the concept of numerosity across modalities. This was for example the case in the experiment of Church and Meck, in which rats learned to "add" the number of light flashes to the number of tones to find out the number of expected lever presses, showing a concept of numerosity independent of visual and auditory modalities.

Modern studies in number sense in animals try to control for other possible explanations of animal behavior by establishing control conditions in which the other explanations are tested. For example, when the number sense is investigated on the example of apple pieces, an alternative explanation is tested that assumes that the animal represents the volume of apple rather than a number of apple pieces. To test this alternative, an additional condition is introduced in which the volume of the apple varies and is occasionally smaller in the condition with a greater number of pieces. If the animal prefers a bigger number of pieces also in this condition, the alternative explanation is rejected, and the claim of numerical ability supported.

Approximate number and parallel individuation systems Numerosity is believed to be represented by two separate systems in animals, similarly to humans. The first system is the approximate number system, an imprecise system used for estimations of quantities. This system is distinguished by distance and magnitude effects, which means that a comparison between numbers is easier and more precise when the distance between them is smaller and when the values of the numbers are smaller. The second system for representing numerosities is the parallel individuation system, which supports the exact representation of numbers from one to four. In addition, humans can represent numbers through symbolic systems, such as language.

The distinction between the approximate number system and the parallel individuation system is, however, still disputed, and some experiments record behavior that can be fully explained with the approximate number system, without the need to assume another separate system for smaller numbers. For example, New Zealand robins repeatedly selected larger quantities of cached food with a precision that correlated with the total number of cache pieces. However, there was no significant discontinuity in their performance between small (1 to 4) and larger (above 4) sets, which would be predicted by the parallel individuation system. On the other hand, other experiments only report knowledge of numbers up to 4, supporting the existence of the parallel individuation system and not the approximate number system.

In primates Studies have shown that primates share similar cognitive algorithms for not only comparing numerical values, but also encoding those values as analogs. In fact, many experiments have supported that primates' capacity for numbers is comparable to human children. Through these experiments, it is clear that there are several neurological processing mechanisms at work— the approximate number system (ANS), number ordinality, the parallel individuation system (PNS), and subitization.

Approximate number system The approximate number system (ANS) is fairly imprecise and relies heavily on cognitive estimation and comparison. This system does not give numbers individual value, but compares quantities based on their relative size. The efficiency of this ANS depends on Weber's law, which states that the ability to distinguish between quantities is dictated by the ratio between two numbers, not the absolute difference between them. In other words, the accuracy of the ANS depends on the size difference between two quantities being compared. And since larger quantities are more difficult to comprehend than smaller quantities, the accuracy of ANS also decreases as numerosity increases.

It has been found that rhesus macaques (Macaca mulatta), when given certain images of objects with multiple properties i.e. colors, shapes, and numbers, are quick to match the image with another of the same number of items regardless of the other properties. This result supports the use of the ANS because the monkeys aren't defining numbers individually, but are rather matching sets of items of the same number using comparison of quantities. The tendency of macaques to categorize and equate groups of items by number is extremely suggestive of a functioning ANS in primates.

Examples of the ANS in primates exist during natural confrontation within and between groups. In the case of chimpanzees (Pan troglodytes), an intruder on a group's territory will only be attacked if the intruder is alone and the attacking party is composed of at least three males— a ratio of one-to-three. Here, they are using ANS by way of comparative analysis of the invading group and their own group to determine whether or not to attack. This social numerical superiority concept exists across many primate species and displays the understanding of power in numbers, at least in a comparative way.

Further evidence of the ANS has been found in chimpanzees successfully identifying different quantities of food in a container. The chimpanzees listened to items of food that they were unable to see be thrown individually into separate containers. Then, they chose which container to eat from (based on which contained the higher amount of food). They were fairly successful with the task, indicating that the chimps had the capability to not only compare quantities, but also to keep track of those quantities within their minds. The experiment did however break down at certain similar numbers of individual food items according to Weber's Law.

Ordinality The number skill most thoroughly supported in primates is ordinality – the ability to recognize sequential symbols or quantities. Rather than merely determining if a value is greater or less than another like the ANS, ordinality requires a more nuanced recognition of the specific order of numbers or items in a set. Here, Weber's Law is no longer applicable since the values are only increasing incrementally, often by only one.

Primates have displayed ordinality both with arrays of items, as well as with Arabic numerals. When presented with arrays of 1-4 items, rhesus macaques were capable of consistently touching the arrays in ascending order. After this test, they were presented with arrays containing higher numbers of items and were able to extrapolate the task by touching the new arrays also in ascending sequential order. Moreover, the rate at which the monkeys performed the task was comparable to human adults.