Set total number of pages in free pages discovery function