It's easy to find the page count of a PDF document from the command line:
pdfinfo sample.pdf | grep ^Pages:
... but I haven't been able to find a similar method for
odt files and other office documents.
Is there a way to programmatically determine the page count of these documents?