title: Get length of only files not including folder
body: <p>Get the length of the files not including folder.</p>
  
  <pre><code>const fs = require('fs');
  fs.readdir(process.cwd(), function(err, files) {
     console.log(files.length);
  }
  </code></pre>
  
  <p>I have written the code but code includes the folder. I don't want to count the folder</p>