small changes to word coutning script. actually counting words now.