Since none of the columns that you're incrementing this on are conditional - why do you need to know this - isn't the number of columns always the same?