I made something similar a while back.
Put the block in a trigger, and trigger the trigger when the vote is over.
Make a number property for each counter and have the counter update the property. Then, name each property accordingly.
You’d add another if block for each option that can be selected, and put in the same code, but with the name of the next option’s property.
You could also change the naming scheme if you wanted, having each property be named voteOption1, voteOption2 and so on. Then you’d have to change the 12 at the end of the block code to an 11. I have no idea what I was cooking with these property names.
Note that in this block code, ties are resolved by selecting whichever option is first. If you want me to add a better tiebreaker system, let me know!