Word cannot add text after inserting page numbers. How many pages are there altogether?

Insert the page number directly. The page number can be selected in the style of 1 ***X without modification.

You can't change it because the page number you inserted is a number, and you can only enter numbers. Delete the page number, that is, remove the page number format, and you can enter the text.