off-by-one error in updateRowCount()