The number of segments in this URL's path. This is also the number of slashes in this URL's path, like 3 in http://host/a/b/c. This is always at least 1.
http://host/a/b/c
pathSize()
http://host/
1
3
http://host/a/b/c/
4