select count(*) from spa_parametri where chiave = 'DD' and campo_char = 'SI'