Para contar el número de filas en la tabla SQL
SELECT count(*)
FROM information_schema.columns
WHERE table_name = 'Your_table_nale';
Light Leopard
SELECT count(*)
FROM information_schema.columns
WHERE table_name = 'Your_table_nale';
select count(*) from tablename