quick and dirty bash script for word counting