Increment counter

Discussion created by Juan_Ortega on Nov 17, 2010
Latest reply on Nov 19, 2010 by Patrick Cooper
Does anyone have an example of incrementing a counter inside a foreach statement?

This is my variable: <core:set value="0" var="totalCount"/>

I want to show the total results processed after finishing the script.