At the end of the last line of the table of contents, insert-separator-next page, then go to the text (every three pages), double-click the footer (if you don't reflect-view-header and footer), and put the cursor at the footer. In the pop-up header and footer setting window, it will be connected to the last click (grayed out), as shown in the figure.
Go to the previous page to delete the page number in the cover and the footer of the table of contents, then place the cursor in the footer of the text, set the starting page number in the insert-page number-page number format to 1, confirm, and then insert the total number of pages. good