ListBox.ListCount

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aListBox.ListCount

Supported for all project types and targets.

The number of items in the list. For multiple-column ListBoxes, the number of rows. ListCount is 1-based.