>>6
select count(*) from table where hoge = 'fuga'
みたいな、件数取得のSQL。