menuItemCount(): Integer;
The menuItemCount method of the Form class returns the number of menu items on the form.