Document.page_count property. Gets the number of pages in the document as calculated by the most recent page layout operation....Document.page_count property. Gets the number of pages in the document as calculated by the most recent page layout operation.