fixes sample_counts class