select 'ccc',(select count(*) from A where charindex('ccc',a)>0) from A
union 
select 'ddd',(select count(*) from A where charindex('ddd',a)>0) from A