The data model needs to be checked to count available options. Directly using ComboBoxText::children()::size() counts widgets.