Fixed function CountVotes