#NoOfInvPages and #NoOfInvPagesFB

The system variable #NoOfInvPages contains the number of invoice front pages (that is, the number of sheets of paper in the invoice ). Appendix pages are not included.

#NoOfInvPagesFB is the number of invoice pages including both front and back pages. Appendix pages are not included.