#NoOfPages and #NoOfPagesFB

The system variable #NoOfPages contains the number of invoice front pages and appendix front pages (that is, the number of sheets of paper in the invoice and its appendices).

#NoOfPagesFB is the number of invoice pages and appendix pages, including both front and back pages.