Toolbar.getNItems

int getNItems()

Returns the number of items on the toolbar.

Returns

the number of items on the toolbar