Primates have a functional network in frontal and parietal cortices that allows them to quantify the number of elements in a stimulus; that is, its numerosity or cardinality. In this Review, Andreas Nieder examines how neurons in this network process cardinal numbers.