Total page numbers from Metadata

Hello,

We are currently using a script to capture the total number of pages in a batch PDF, which works great. However, we would also like to account for the back side of odd-numbered pages (e.g., for duplex printing) in the total page count.

We already have the “Pages Printed” value available from the DataMapper. Is it possible to combine this metadata in to a %Job variable so it can be saved to a file?

Thanks in advance!