Total number of pages

The TotalPageCount system variable is used to print the total number of pages.

In the figure above, you can see how the total number of pages is output. The TotalPageCount system variable is used with the PageNumber system variable. Normally, it will be as follows. {PageNumber} Of {TotalPageCount}. For example, 5 out of 10 pages.