pub fn snapshot() -> u64
Read the current count. Tests use this to capture before/after snapshots around a code path under test.