I am new to mysql, but if the table information_schema.columns is a table with table_name and column_name , then you can use the following query
select table_name, count( distinct column_name ) column_number_used from information_schema.columns where table_schema = 'your_schema' group by table_name
this should indicate the names of all tables with the corresponding column number used in this table.
source share