Fix wordcounter and unit tests

1) Decided not to implement "nth most popular" right now because it's a
bit tricky. Instead, I've added a getMostFrequent function which has an
option to remove that word from the internal count map so that another
call to the same function will return the next most frequent item.