ss_count_cond function

Compute the number or count of matching conditions