Array.GetLength returns wrong value....

When array.GetLength, I get a value of 9 when the array is 10 units long, and if I change the units to 12 then it returns 12, what is going on???

use .Length instead of getLength

for cs:

using UnityEngine;
using System.Collections;

public class test : MonoBehaviour {
	GameObject[] array;

	void Start () {
	array = new GameObject[10];
	}
	

	void Update () {
	Debug.Log(array.Length);
	}
}

for js:

#pragma strict

var array : GameObject[] ;


function Start (){

array = new GameObject[10];
}
function Update(){
Debug.Log(array.Length);
}