You should be able to pull this like that increments the index sequence number out of this inner for loop, as the seq num only needs to be incremented once (not once per column being dropped).