pub fn count_occurrences( variable: &str, data: &[Assignment], ) -> HashMap<usize, usize>
Count variable occurrences in data.