WebUI.getNumberOfTotalOption() is not working because the tag is 'a' and not 'select'

Below error is displayed when I try to use the “WebUI.getNumberOfTotalOption()” command

_Element should have been “select” but was “a”
Can anyone suggest some alternative for the same?

If you type “count elements” into the search box at the top of this page, you’ll find a few solutions.