info cmdcount
Returns a count of the total number of commands that have been invoked in this interpreter.
See also:
Category Command - Tcl syntax help