Check how many objects are in a trigger?

As the title says, I'm trying to get a quick reading of how many objects are in a trigger. Is there any quick way to do this?

It's possible this will work if put on the trigger object:

var objects : int = 0;
function OnTriggerEnter( other : Collider ) {
 objects++;
}

function OnTriggerExit( other : Collider ) {
 objects--;
}

You can then just ask the .objects variable for how many objects are in the trigger.