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