def get_label_instances(response, target):
    """Get the number of instances of a target label."""
    for label in response['Labels']:
        if label['Name'] == target:
            return len(label['Instances'])