Maybe you easily said how to I provide table names and row counts?
Pseudo SQL:
for \"select tablename from system.Tables\" into :tablename execute \"se
exec sp_MSForEachTable 'SELECT ''?'' as TableName, COUNT(*) as Rows FROM ?'