Calculation of proportions in relation to total count