Get the number of columns in a table into a given variable

intcolcount;
ts_table(TableDescr1,"get_columns_count", colcount);