ListBox.RowCount

From Xojo Documentation

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

New in 2019r2

Supported for all project types and targets.

The number of rows in the ListBox.