Increment Variable in a Loop

Use this recipe to increment the sequence or counter variable within a data mapper while processing data in batches.