I know this thread is ancient, but since it has been revitalized with a solution, I thought I would chime in and say that Baboum's script works for me most of the time, but like Oddish, I do have some PDFs without Page/Count tags. I didn't create the original PDF, but I have tried recreating it, by printing to PDF from Acrobat, but still it does not contain the tags. Anyone have any ideas on how to add these properly. I tried some quick manual additions of it, but it broke the PDF.