Add stub function to calculate word counts in solr.