A family of Microsoft word processing software products for creating web, email, and print documents.
Assuming that Page X of Y is in the header or footer, both the PAGE and NUMPAGES fields should update properly.
Note that you can force repagination by switching to Print Preview (Ctrl+F2) and then go back to your previous view (ESC). Doing so would also update the fields.