How to get total count of tables in MSD axapta

Declaration of variables. dict is object for dictionary class and tablecnt is method of that system class. You can get total number of tables in AOT by following way.

 Dictionary dict;  
 int  totalTables;  
 dict = new Dictionary();  
 totalTables = dict.tableCnt();  
 info(strfmt("%1",totalTables));