The length property of the HTMLSelectElement interface specifies the number of option elements in the select element.
length
MDN Reference