first attempt at word-count