Working version of terrasort
Added wordcount