sql = "select count(*) AS numero FROM B2Interventi WHERE YEAR(data_int)=" & anno

that easy!