"Territorial animals may need to assess the number of individuals in their own group relative to competing groups to decide whether to stand their ground or retreat." . . . . .