How do you Limit objects picked up?

i need some help i am trying to make a game for the special ed class.
my current code is:

var wordCollect : AudioClip;

function OnTriggerEnter(collisionInfo : Collider)
{
    if(collisionInfo.gameObject.tag =="word")
    {
        WordCollect.charge++;
        audio.PlayOneShot(batteryCollect);
        Destroy(collisionInfo.gameObject);
    }
}

@script RequireComponent(AudioSource)

Maybe you want something like this:

var wordCollect : AudioClip;
var maxWords : int; // set in the inspector.

function OnTriggerEnter(collisionInfo : Collider)
{
    if(collisionInfo.gameObject.tag =="word" && WordCollect.charge < maxWords)
    {
        WordCollect.charge++;
        audio.PlayOneShot(batteryCollect);
        Destroy(collisionInfo.gameObject);
    }
}

@script RequireComponent(AudioSource)