title: Find the depth of the current path
body: <p>How can I write a shell script to find the depth of the current path?</p>
  
  <p>Assuming I am in:</p>
  
  <pre><code>/home/user/test/test1/test2/test3
  </code></pre>
  
  <p>It should return 6.</p>