generic map reduce for word count WORKS