Prints the total number of pages of an report. If a group is specified, this function expects the group to have the
manual pagebreak enabled.
This function will only work as expected in group mode if the named group has pagebreak-before set to true on the
header for pagebreak-after set to true on the group's footer.
author: Thomas Morgner
Return a completly separated copy of this function. The copy does no longer share any changeable objects with the
original function.
a copy of this function.