similarly, the max label value is dynamically allocated for compute_counts_for_labels as well. (See previous commit for label_volumes_from_jacobians)