title: How to display the total number of the files used in a folder
body: <p>This is a part of the code so far:</p>
  
  <pre><code>System.IO.FileInfo[] fileNames = dirInfo.GetFiles("*.*");
  
  foreach (System.IO.FileInfo fi in fileNames)
  {
       Console.WriteLine("{0}: {1}: {2}", fi.Name, fi.LastAccessTime, fi.Length);
  }
  System.IO.DirectoryInfo[] dirInfos = dirInfo.GetDirectories("*.*");
  
  foreach (System.IO.DirectoryInfo d in dirInfos)
  {
       Console.WriteLine(d.Name);
  }
  </code></pre>
  
  <p>What I want is the output to be like this:  <code>Total files: 49</code></p>
  
  <p>How do I display the <code>49</code>?</p>