updated counting row_num