select count(distinct(year(campo))) from tabella