How to access the #foreach loop counter

How to access the #foreach loop counter

Use the $velocityCount variable reference to access the loop counter. The counter starts at 1.