index modified with counter.