def voteCount(candidate,ballots): x = 0 for ballot in ballots: if ballot == candidate: x += 1 return x
voteCount('Raj',['Raj','Raj','Alex'])
2