implement total_votes method on post model