a mostly functional WordCount

not distrubuted yet, because needs serialization for hashmap