add routines for computing the council size and gender ratio