def term_counts(self):
counts = OrderedDict()<EOL>for term in self.terms:<EOL><INDENT>counts[term] = len(self.terms[term])<EOL><DEDENT>return utils.sort_dict(counts)<EOL>
Returns:
    OrderedDict: An ordered dictionary of term counts.