Create WordCounter.java

A word counter example using java HashMap