Add wordcount java example