Used SQL statements to post count of posts in database on the index view.