How to find number of pages using aspose in vb.net

how to find number of pages using aspose in vb.net can suggest any one i tried but cant finding number of pages from aspose facades form object
All I want to do is open a pdf for the user and need to add subject using docid
Where would I find an example ?

Thanks

@balaram711,
Welcome to our community!
I have moved your topic to Aspose.PDF Product Family forum.

@balaram711

You can use Document.Pages.Count property in order to get the number of pages in a PDF document:

Dim pdf As Document = New Document("Input.pdf")
Dim pagecount As Integer = pdf.Pages.Count

In case you are facing some issue, please share your complete sample code snippet along with sample PDF file. We will test the scenario in our environment and address it accordingly.