A family of Microsoft word processing software products for creating web, email, and print documents.
When the footer is open for editing, you can insert the page number by pressing Alt+Shift+P. This adds a PAGE field which will update dynamically from page to page.
For the total page count, you can add the NUMPAGES field. Click where you want the field and use Insert tab > Text group > Quick Parts > Field and locate NUMPAGES in the list of fields.