base report reset page numbers on change in group

I writing a report i want to reset the page number to page 1 of x on each change in group. If group 1 had 2 pages the page numbers would be page 1 of 2 and the 2nd page would be 2 of 2. When the groupe changes i want to reset the page number to page 1 of x .

Is this possible in Libreoffice?

Did you get the solution of this. I am searching to implement the same.