The SectionPages field inserts the total number of pages in a section. When using this field, you should restart page numbering from 1 in each section after the first section.
Syntax
When you view the SectionPages field in your document, the syntax looks like this:
{ SECTIONPAGES }
Note: A field code tells the field what to show. Field results are what’s shown in the document after having evaluated the field code. To toggle between viewing the field code and the field code results, press Alt+F9.
Example
To print text such as "Page 4 of 29" on each page of a document you've divided into sections, insert the following fields and text in the header or footer:
Page { PAGE } of { SECTIONPAGES }