#!/bin/bash
#Just figured out a way to count files types in a given directory.  I'm sure there is a simpler way to do this...

while read line; do 
	echo ""$line" Files Produced: `find . | grep -w "$line" | wc -l`";
done <<< "`find . | rev | cut -d '.' -f 1 | rev | sort -u | sed 's/\/.*//g' | sed '/^$/d'`" > foo.txt

exit