I have a data frame with many columns. I need to get a list for arbitrary columns and the number of rows that meet some conditions based on those columns. For example, data frame has column a, b and c, I need to get row counts that b > 0 for b, and c > 0 for c in the form of
column count
b 23
c 12
What is the easiest way?