implement party-based counting of ballot results