def METHOD_NAME(self, request, object_list):
    related = TermRelationship.objects.none()
    if len(object_list) > 0:
        ids = [obj.id for obj in object_list]
        related = TermRelationship.objects.filter(sherdnote__id__in=ids)
    data = []
    for vocabulary in Vocabulary.objects.filter(course=request.course):
        ctx = self.render_one(request, vocabulary)
        for term in ctx['term_set']:
            term['count'] = related.filter(term__id=term['id']).count()
        data.append(ctx)
    return sorted(data, key=lambda x: x.get('display_name').lower())