NUMPAGES

Syntax:

NUMPAGES [ switch ]

Description: Retrieves the number of pages in the current document, as recorded in the <Pages> element of the Application-Defined File Properties part.

Field Value: The number of pages in the current document.

Switches: Zero or one numeric-formatting-switch or general-formatting-switch.

example:
NUMPAGES \# #,##0
NUMPAGES \* OrdText

the results are:

 19
nineteenth