How to find PDF page Count

you are trying to read the PDF with stream reader right?

There may be some exceptions to read a pdf with stream reader…

Here is an useful thread : check this

You can get those directly using this activities :