animation loop counter

I have a looped animation playing on a character from a .fbx file. It is currently set to WrapMode.Loop

I would like to create a counter which iterates the number of times that the animation has looped. In other words the var counter : int += 1 each time the loop starts over.

Any ideas?
Thanks.

Try

var loops : int;

loops = animation["CurrentAnimation"].normalizedTime

it should count up as the animation loops over.

Awesome Petey,
that works perfectly. Thanks.