pull vote_count logic from view into model