word-count.js first iteration