pub fn occurs<T>(set: &[T], val: T) -> usize where T: PartialOrd + Copy,
Counts occurrences of val by simple linear search of any unordered set