Cats can count to much more than two. If there are treats on a shelf and our older cat knocks them down, she'll remember how many hit the floor (from the sound) and then not stop looking for them until she's found that many. I suspect being able to keep track of distinct objects is useful when hunting if multiple small prey animals disperse in order to confuse the predator.