collision count

Here is my code…

private var count : int = 0;

function OnTriggerEnter( other : Collider)
{
count += 1;
print(count);

}

and now when my object enter into the trigger it prints 1,2,3… 41. I dont want all that… I just want to increase count by 1 I mean when object enter once the count should be 1 and second time 2 and so on… Whats the prob… Can any1 help???

seems it is entering multiple times. I suggest you re check your collision setup.

One of the colliding objects need to be a rigidbody