DBSIZE
(ISTAT('DBSIZE'))
DBSIZE returns the size of the currently open database (total of the four database files). If no database is connected, ISTAT returns 0.