Always check the MODIFIED_PDF_PAGE_COUNTS variable before returning a page count