numbuttons
Syntax:
%numbuttons()
Returns the number of buttons currently defined.