WebMenuItem.Count

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aWebMenuItem.Count

New in 2011r2

Supported for all project types and targets.

The number of children for the menu item.