Add WordCount example with anonymous classes (for discussion)