added wordcount

made a wordcount.java, which is the template for anchorgraph.java