Added test for occurences
Can count occurances of word
Checked edge case for newlines