prova così:
codice:
SELECT tipo, COUNT(tipo) AS totale
FROM tabella
GROUP BY tipo