get_sample_counts function

Get column names either from user or from attributes