Returns the number of tabs.
getTabCount = function();
//Create 10 tabs for(var i = 0; i<9; i++) createTab(); //Get the number of tabs var tabCount = getTabCount(); log(tabCount);