Since vbPDF can only work on one page at a time and you cannot modify any page created before the latest call to StartPage, GetCurrentPageNumber will always return the total number of pages currentlyin the document.
Example
Dim cPDF As New vbPDF
..
Dim intPageCount As Integer = cPDF.GetCurrentPageNumber()