select table_name, count(*) from (select distinct data_type as data_type, table_name FROM information_schema.columns WHERE table_name like '<table-name>') t group by table_name