php pdf page count
http://stackoverflow.com/questions/14644353/get-the-number-of-pages-in-a-pdf-document
実際利用した方
今回別要件でmPDFを利用していた。内部でFPDIを利用していたので
以下の処理でページ数カウント
$mpdf = new mPDF();
$mpdf->SetImportUse();
$page_count = $mpdf->SetSourceFile($file_path);
参考