I'm not sure how they do it, but I have a feeling that it is by weight.
I think it is mainly just a case of putting diners on notice that they should only take what they can eat.
I imagine it would be difficult if the restaurant were dealing with a huge tour group. There would be a riot!