update page count method