select count(*) FRom (select distinct nome from tabella)