title: How to count the number of files in a directory using Python
body: <p>How do I count only the <em>files</em> in a directory? This counts the directory itself as a file:</p>
  <pre><code>len(glob.glob('*'))
  </code></pre>