make vote counting efficient