Returns the number of buttons contained in the toolbox page.
Use this function to determine the number of buttons in toolbox page.