count_vals_incols_byname function

Count the number of matrix entries in columns that meet a criterion