%%LR_TOTAL_PAGES
The total number of reset logical pages in part of a document. This number is reset on the page that follows the page on which the %%RESET_COUNTERS field location is found.
Valid in Control File Tags
This system variable is valid in the Control File when used in the following tags.
- <ADDPART>
 - <FIELD> (with field replace, meaning the [action] parameter is set to R)
 - <SIDEPART>
 - <SORTPART>
 
Valid in Rule File Sections
This system variable is valid in the following Rule File sections.
- Document
 - Presorted
 - Page