Retrieves the number of buttons in this ToolBar control.
public final int getButtonCount()
Returns the number of buttons in this toolbar.