Another way to do it in the query is select the field with yes/no and then another field in the table (ie item) and do a group by the yes/no field and count the item field.
here's a sample in SQL Vies - if you wanted to count how many companies have a website (Website is your y/n field) the code would be:
SELECT tbl_Company.website, Count(tbl_Company.Company) AS CountOfCompany
FROM tbl_Company
GROUP BY tbl_Company.website;