How the keg numbers are worked out