def get_complexity(data):
    """
    Gets the complexity of the given trial data -- the number of degrees of
    freedom that are active, or under control of the subject.
    """
    return int(len(data['active_classes'])/2)