count votes with ip and user_id