A pretty robust (and sloppy) program I wrote to count millions of files per run and increment based on second of creation. This was used on a project studying and analyzing cosmic radiation. My first C++ program, and I even taught myself!