select count(*) from (select distinct startperson_id,count(startperson_id) as num from apphome_finance group by startperson_id having num>10 and startperson_id=2)subQuery;