resolved issue with showing total number of posts on index