Function to get frequencies of votes per optionid.