Implemented methods necessary to count votes for each candidate