title: Finding the number of files in a directory for all directories in pwd
body: <p>I am trying to list all directories and place its number of files next to it.</p>
  
  <p>I can find the total number of files <code>ls -lR | grep .*.mp3 | wc -l</code>. But how can I get an output like this:</p>
  
  <pre><code>dir1 34 
  dir2 15 
  dir3 2 
  ...
  </code></pre>
  
  <p>I don't mind writing to a text file or CSV to get this information if its not possible to get it on screen.</p>
  
  <p>Thank you all for any help on this.</p>