Increment total pages counter if a new page is appended