A family of Microsoft word processing software products for creating web, email, and print documents.
Assuming that you can place the insertion point in the header or footer at the place where you want to insert the page number, press Ctrl+F9 to insert a pair of field delimiters { } and inside them type the word page
{ page }
use Alt+F9 to toggle off the display of the field codes.
Alternatively, from the Insert tab, select Quick Parts and then Field and select the type of field that you want to insert - Page, NumPages (for the total pages in the document, SectionPages (for the pages in the Section).