I am pretty certain on mainline international flights there is a headcount as I always see them doing it. Of course, the airline would end up in big doo-doo if they delivered someone to the wrong country and they also have to positively match the bags.