title: Count number of files within a directory in Linux?
body: <p>To count the number of files in a directory, I typically use</p>
  
  <pre><code>ls directory | wc -l
  </code></pre>
  
  <p>But is there another command that doesn't use <code>wc</code> ?</p>