Take number of pages from config