updating page counts