Is there an InDesign plug in or ExtendScript for the functions described below?

For InDesign is there a plug-in or ExtendScript that will keep the same number for the front and back of a duplex page (see numbers in red circle) but increase after every two pages.
I also want this number to be a three digit number. for example: 001, 010, 100.
The Front (1 of 2) and Back (2 of 2) will be on Master Pages.
I also need the pages inserted in the order shown with 1 of 2 preceding 2 of 2 so I can have hundreds of pages in this order without have to manually collate.
Please contact David Healy
with any info.
Or let me know if this already exists in InDesign and I just didn’t see it.
(moderator: phone number and email removed. Please do not give contact information)
