select a,count(*) as b from c group by a
union 
select 'total',count(*) as b from c
;