refactoring: outsourcing count of votes to model

Also fixing issue #18: sorting star rating moves by the number of stars
given