There are two methods:
The Content Aging Report lists "Total number of pages counted in this report"
This number is all pages including unpublished pages
Use the @api/deki/pages API call and count the number of <page>
nodes
This only includes pages that have been published.