made minor changes to vector and a script to count words