If, like me, you actually wanted "both; each exactly once","both; each exactly once", (this is actually "either; twice") then it's simple:
grep -E "thing1|thing2" -c and check for the output 2.
The benefit of this approach (if exactly once is what you want) is that it scales easily.