Looks like I was wrong about Counter tracking order, it's also arbitrary in the case of ties. I changed this to use value_counts and added a note about how the order is arbitrary in the case of ties.