according to the number of seats in the prior legislature