The query below returns the total number of tables in the current database.
Query
select count(*) as [tables]
   from sys.tables 
Columns
- tables - number of tables in a database
Rows
The query returns just one row.
Sample results
Those results show that there are 16 tables in the AdventureWorksLT database.

 
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                 
                                                             
                                                             
                                                             
                                                             
                                                                 
                                                             
                                                             
                                                                 
                                                             
                                                             
                                                             
                                                             Rene Castro
                                                                        Rene Castro
                                 Azure SQL Database
                                                                Azure SQL Database
                                 SQL Server
                                                                                                SQL Server
                                             Oracle database
                                                                                                Oracle database
                                             Snowflake
                                                                                                Snowflake
                                             Amazon Redshift
                                                                                                Amazon Redshift
                                             IBM Db2
                                                                                                IBM Db2
                                             Teradata
                                                                                                Teradata
                                             Vertica
                                                                                                Vertica
                                             PostgreSQL
                                                                                                PostgreSQL
                                             MySQL
                                                                                                MySQL
                                             MariaDB
                                                                                                MariaDB
                                             Microsoft Access
                                                                                                Microsoft Access