Added custom function to WordCount example which uses a Lucene analyzer to parse lines of text.