pub fn update_stats(data: &mut Map<String, Value>)
Recompute stats from the body entries (seq > 0).
stats