Qualcosa tipo

Select categorie, count(categorie)as totale From tabella group by categorie