select count(*)
from prodotti
group by categoria