First draft of word-count.js