simplified word-count a bit. made grade-school compile, but not do anything.