Function value_counts

Source
pub fn value_counts<T>(list: &Vec<T>) -> BTreeMap<T, u32>
where T: PartialEq + Eq + Hash + Copy + Ord,