add vote count methods to post model and begin index view