Count the items in the array as the basis of the index.