Answer:
Include total number of pages in the page number
Go to Insert > Page Number.
Do one of the following: Select Current Position if you have a header or footer. Select a location if you have no header or footer yet.
Scroll until you see Page X of Y and select a format.
Select Close Header and Footer, or double-click anywhere outside the header or footer area.