pub fn total(&self) -> usize {
        // Counts are already added from children.
        self.cts.values().cloned().sum()
    }
Calculate the total number of items counted by this span and its children.
crates/core/machine/src/utils/span.rs