How do votes work?

This is a duplicate: