A family of Microsoft word processing software products for creating web, email, and print documents.
If you add section breaks and modify the page numbering properly in the Page Number Format dialog box, the modified page number will display in an automatic table of contents.
In a section, you can display the page count with the SECTIONPAGES field, as Jay explains in the thread for which Neha Singh has already provided a link (https://answers.microsoft.com/en-us/msoffice/forum/msoffice_word-mso_win10-mso_2016/automatically-include-a-chapters-number-of-pages/3d7cebc6-f648-447d-b413-ab01c7150b55).