mongoose promise for count of posts
Pagination render