To demonstrate I've attached the following:
1. drawing Tabnumber.dwg shared in OP(originally called renamepagestrial.dwg)- download & open in your AutoCAD session
2. lisp code: Tabnumber.lsp - to load, save this to a location like My Documents, then open Windows Explorer to My Documents folder, select Tabnumber.lsp, drag & drop it onto your AutoCAD graphics drawing area
Tabnumber.dwg contains 20 layouts each with the same title block containing a number of attributes including SHEET #. To run lisp code at command prompt type: Tabnumber
Then select: 3 OF 24

At the next prompt:
Enter Number To Subtract from Total Layout Quantity: <0>:
Hit Return to accept 0
An alert box will appear showing you what the lisp function will now do:

Then it will cycle through each layout locating the matching title block name & the same attributes under SHEET # , input the layout order as the first # before OF and the total # of layouts after OF
The lisp function will conclude with the following alert windows when successfully completed

Now each layout's SHEET # section will automatically be filled like this:

If you move layout P02 to before P01 and do a REGEN, the SHEET # section will update automatically
Likewise if you copy layout P02 as P02 (2) and do a REGEN the SHEET # section will again update accordingly.

