Drawing page numbers

Does any body know what to link the page numbers to in a drawing template so that the pages automatically number themselves when i add new sheets or rearrange the sheets in a drawing?

SolidworksDrawings And Detailing