word counter with pre defined mapper and reducer