codice:
SELECT * , count(*) as tot
from tabella
group by nome
order by tot desc
ottieni tre record ordinati per quantita' in ordine desc.