Is there a way to put in the status bar the number of pages of a pdf file?

You can get the pdf page count via a script column. This column can be used in an info tip but I don't think it (or any script column) is available in the status bar.