Auto Page Numbering

I use a template for all my drawings that includes a page number in the lower right hand corner (usually says "Page 1 of 4" for example). I usually edit this number manually, which is fine for documents with a small amount of pages, but if I'm working on a large document (50+ pages) and need to re-order some pages it means editing the page number on every page manually.

Is there some way of having the number in a piece of artistic text dynamically update depending on what page number it's on?