Add -Wall so that we catch warnings.  Also remove *.~ and *.o files in
the "clean" rule.
Make the code -Wall-clean, and fix a critical bug where we didn't
output the count to the output file.  :-(