I was reading about the history of this rhyme, and it turns out that it is about Magpies, they are counting Magpies. Sometimes other birds are used, including Jackdaws and Crow, and very occasional Ravens.
I had only ever learned it as Ravens. Is that strange? Did anyone else learn the rhyme as Ravens?