title: Checking if files have the same date from the name, Python 3
body: <p>I have some files that have the date saved within them, e.g. <code>foo161108part.txt</code>,<code>baarr161108part2.txt</code>,<code>python141106part2.txt</code></p>
  
  <p>So far I've listed the directory with:</p>
  
  <pre><code>directoryFiles = []
  for name in os.listdir(os.getcwd()):
      if name.endswith('.txt'):
          files.append(name)
  print(files)
  </code></pre>
  
  <p>There are quite a lot of different files with different dates, and I'd like to see how many come up on the same date.</p>
  
  <p>Thanks!</p>