22393 - Added PageNumber element

Added a PageNumber function so that the PageNumber can be displayed as a text element in the report.