As a child, my family had a cat that dropped a litter of five kittens. If we took one of the newborns to play with, the mother would search frantically for it. That raised the question of whether a cat could count to five. The answer is, apparently, they can subitize.
I think they can count up to 9.