Extracting pdf page count without using regex

I’ve created a request for the activity, please vote here: PDF Page Count Activity