You can estimate the number of pages by running a query that counts the rows produced by the report's query and then dividing by the number of detail lines printed per page. This will be accurate as long as the report does not include many levels of breaks which will take up extra space or page changes on certain break levels.