title: csh pipe output of find command
body: <p>I am trying to get a count of directories inside each directory of a folder.</p>
  
  <p>Basically I want to go into every folder in a given directory and then run 'ls -l | wc -l'</p>
  
  <p>Suppose i am in the directory that has the following structure:</p>
  
  <pre><code>├── sq1         
  │   ├── 12      
  │   ├── 123     
  │   └── 1234    
  ├── sq2         
  │   ├── 1       
  │   ├── 123     
  │   ├── 1234    
  │   └── 345     
  ├── sq3 
  </code></pre>
  
  <p>I want my output to be of the type:</p>
  
  <pre><code>sq1 3
  sq2 4
  sq3 0   
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>find -maxdepth 1 -type d -exec find {} -maxdepth 1 -type d \;
  </code></pre>
  
  <p>but that lists everything . I need to count individually. How would I go about this? I am running csh. </p>
  
  <p>Help much appreciated</p>