Returns the number of elements in an array