We calculate the number of menu items that are created in the menu element.
To see the number of menu pages:
Select menu and click "Edit Menu";
Count the number of created menu items.
Preview: