Hello,
Instead of inserting the default page-of field, that use NumPages (total number of pages in the document), you need to change the templates to use SectionPages (total number of pages in the section) to get the output you need:
http://www.wordbanter.com/showthread.php?t=80139
Regards.