A new study says, more or less, that dogs can count. The study bases this on indirect, fMRI data. You may find the evidence persuasive:
The study does not mention that there are many studies, done in many classrooms, showing that many people cannot count.
This new dog study is: “Canine sense of quantity: evidence for numerical ratio-dependent activation in parietotemporal cortex,” Lauren S. Aulet, Veronica C. Chiu, Ashley Prichard, Mark Spivak, Stella F. Lourenco, and Gregory S. Berns, Biology Letters, December 2019.