LM_Menu:CountItems()

Version added: before 9.5

Returns the number of commands in the menu

Return type (int32): the number of commands in the menu