Wordcount script that works with CDH 4