Add optional index counter to each loop.