Started implementing word count function.