The length property of the HTMLOptionsCollection interface returns the number of option elements in the collection.
length
MDN Reference