Put the array length into a local var.