Store length of array in ii local var.