count votes properly