If you want the number of rows returned by the first query:
select count(*) from (select COUNT(flag)as rows from mytable where mycolomn0= 'N' group by mycolomn1) as t
If you want the total number of rows returned :
select sum(rows) from (select COUNT(flag)as rows from mytable where mycolomn0= 'N' group by mycolomn1) as t