count votes, first part