select count(*) from dual where not exists (select 1 from parties where email = lower(:email))