added number of pages for in-post pagination