This plugin shows the number of pages of a PDF document in the status bar of PCManFM, when a PDF file is selected. It uses libpoppler-glib to parse PDF files.
First install dependencies. For debian-based systems:
sudo apt-get install libtool-bin libpoppler-glib-dev libfm-dev
Then compile and install:
make
sudo make install