dovresti raggruppare per type:

codice:
select type, count(id) as num_type
from news_article
group by type