`$velocityCount` is deprecated, you can use `$foreach.count` (1-based) or `$foreach.index` (0-based).