pub fn label_counts<T: Clone + Eq + Hash>( labels: &Array1<T>, ) -> HashMap<T, usize>
Count occurrences of each label