total

total is used to display the number of iterations that this foreach will loop. This can be used inside or after the foreach.