I am trying to get a zero-based counter in a Velocity #foreach directive.
#foreach
if i use:
#foreach ($item in $list) item.getName() : $veloc
If you are using Velocity 1.7 there are $foreach.index (0-based) and $foreach.count (1-based) special vars available inside loops.
$foreach.index
$foreach.count
$velocityCount is something that was deprecated long time ago afaik.
$velocityCount