graphicx to include pages of a PDF file. I want to know in LaTeX how many pages are in the file. How to do this?
pdfpages is obviously somehow able to get the number of pages of an included pdf. It does it with the pdftex primitive