PageNumber property is used for getting the page number; PageCount property
contains the total amount of the pages in a report. During the first pass, total
page amount is unknown and PageCount property will be equal to PageNumber
Property. Set DoublePass property of the Document object to “True” for PageCount
property to keep the total amount of the pages.
Sample demonstrating use of Page Numeration: Page Numeration.rst