code: public int depth() {
  		String path = uri.getPath();
  		int depth = 0;
  		int slash = path.length() == 1 && path.charAt(0) == '/' ? -1 : 0;
  		while (slash != -1) {
  			depth++;
  			slash = path.indexOf(SEPARATOR, slash + 1);
  		}
  		return depth;
  	}
docs: Returns the number of elements in this path.
  
  @return the number of elements in this path