I created a bash script that counts words for me in ~/scripts.
There are several bugs in all scripts, please fix them all.
The comments in the scripts describe how they are supposed to behave.