How do I count the number of s in a DOM element using jQuery?
Another approach that can be useful.
$('#select-id').find('option').length