TCC > Variables & Functions > Variables:
Comments (...)
_TCTABS returns the current number of Take Command tab windows (or 0 if TCC is not running in Take Command).
Help URL: http://jpsoft.com/help/index.htm?_tctabs.htm