Find how many Elements in Transform[]

In my script I am to figure out how what the size of a Transform[] is.

Here is my code

    if(moveDirection.magnitude < 1)
    {
        if(behaviorType == behavior.Loop)
        {
            currentWaypoint++;
        }
        else if(behaviorType == behavior.Random)
        {
            currentWaypoint = Random.Range(1, I WANT THE TRANSFORM SIZE HERE);
        }
    }

Thank you in advance :)

If you have a Transform[] array, then you can use .Length.