Pigeons may be ubiquitous, but they're also brainy, with surprising numerical competence.