The query below returns tables with their number of columns, ordered from highest to lowest.
Query
select schema_name(tab.schema_id) + '.' + tab.name as [table], 
       count(*) as [columns]
   from sys.tables as tab
        inner join sys.columns as col
            on tab.object_id = col.object_id
group by schema_name(tab.schema_id), 
       tab.name
order by count(*) desc
Columns
- table - name of the table (with schema name)
- columns - number of columns in table
Rows
- One row: represents one table in a database
- Ordered by: number of columns in descending order - from tables with the largest number of columns to the lowest
Sample results

 
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                 
                                                             
                                                             
                                                             
                                                             
                                                                 
                                                             
                                                             
                                                                 
                                                             
                                                             
                                                             
                                                             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