MySQL Count Rows retournés
select count(*) from (select * from foo) as x;
Powerful Penguin
select count(*) from (select * from foo) as x;