'Adds page numbering to each page (page x of y)'

def save(self):

    num_pages = len(self._saved_page_states)
    for state in self._saved_page_states:
        self.__dict__.update(state)
        if (num_pages > 1):
            self.draw_page_number(num_pages)
        Canvas.showPage(self)
    Canvas.save(self)
