I guess, you have included 'Exclude Page Count' option in Table Of Content (TOC) form.
There is a limitation in studio. The page number functions (FORM PAGE NUM OF/ FORMSET PAGE NUM OF) will be ineffective when we select the 'Exclude Page Count' option in TOC form. Hence, you was not able to print the Form Page Count in TOC form.
The only way to print page count is to deselect 'Exclude Page Count' option. Then you can normally print the TOC Page Count in TOC form. However, thiS TOC page count will add to the Total formset Page Count. The Formset Page Count can be controlled through Postransdal using the script [FORMSET PAGE NUM = TotalPages() - 1]