Second iteration of 'word count'