Script to do word counts with solr