Reusable Hadoop wordcount program