The number of parties and decision-making in legislatures