bjwillinham's solution would give you the count of which ones do not contain "beef" of the existing entries, or do you want to know how many do not contain "beef" in the total range?
In other words, if Q5:Q9000 were completely empty would you want it to return 0 or 8996?