pub fn summarize_errors(path: &Path) -> Result<BTreeMap<String, u64>>
Count error+ records grouped by component.
Returns io::Error if the file cannot be opened or read.
io::Error