in reply to pdf - page count

That module hasn't been updated for a while. See if PDF-API2 or CAM-PDF work for you. They both have methods for getting number of pages.

Update: CAM::PDF gives a similar error about missing cross-reference data for your sample gaba.pdf file.