Most of the Pig and Hive wordcount examples I've seen either require UDFs, external scripts, or they don't produce diff-able output. Or, they just don't do a very good job of counting words. Here's my hacks.