Return the directory depth of path.
path (str or Path) – File or directory path.
Number of path components after the root.
int