There is a special variable on the pipeline called $iteration which will be incremented as the loop operator works up through the list.
Interview Questions and Answers pdf free download for freshers beginners experienced, Multiple Choice Questions with Answers Practice, Placement Papers