pub fn depth(path: &str) -> usize
The depth (segment count) of a path. A top-level context is depth 1.