'Get the number of teams associated with this topic'

def get_team_count(self, topic):

    if ('team_count' in topic):
        return topic['team_count']
    else:
        return CourseTeam.objects.filter(course_id=self.context['course_id'], topic_id=topic['id']).count()
