COUNTW() counts the number of words without regard to their values.
COUNT() can count the number of times a substring appears.
If the only possible values of yes,no,unknown and blank then simple concatenation should work.
nyes = count(cats( of MYOCARDIALINFARCTION--AIDS), "Yes",'i');
... View more