Added page numbers to the template.