Fix vote counts on policy#index page

Fixes #126 for Rails only so far.

TODO:
- [ ] Fix PHP?
- [ ] Refactor Rails stuff, e.g. rename nasty PHP variable names