The length property of the HTMLOptionsCollection interface returns the number of elements in the collection. The property can get or set the size of the collection.
length
MDN Reference