select Count(meta().id) from dataRT where type_=“Policy” and ifmissing( beneficiaries , false) = false;
Also try this
CREATE INDEX ix1 ON dataRT(type_) WHERE beneficiaries IS MISSING;
select Count(meta().id) from dataRT where type_=“Policy” AND beneficiaries IS MISSING;