The numPages property returns number of pages in the document.
System.Int32 numPages();
Returns the numPages object, otherwise, null.
This property is Read-Only
Member of doc.