DesktopMenuItem.Count
From Xojo Documentation
Method
Returns as an Integer the number of children a menu owns.
Notes
For a menu item, it returns the number of submenu items, if any. If there are no submenu items, it returns zero.
Returns as an Integer the number of children a menu owns.
For a menu item, it returns the number of submenu items, if any. If there are no submenu items, it returns zero.