How to add page numbers in InDesign
1- Move pages by dragging
As you drag, the vertical bar indicates where the page will appear when you drop it. If the black rectangle or bar touches a spread when Allow Pages to Shuffle is turned off, the page you’re dragging will extend that spread; otherwise, document pages will be redistributed to match the Facing Pages setting in the File > Document Setup dialog box.In the Pages panel, drag a page icon to a new position within the document.
1- To insert page numbers in InDesign, you have to use a placeholder called “Current Page Number.”
2- You can place it on any page or on the master page of your document. The placeholder will display the number of the page where it sits or the master page prefix.