Likelihood calculated using sizes of congruency classes