def num_switch_trials(eventcode):
    """
    :param eventcode: list of event codes from operant conditioning file
    :return: number of large and small rewards in the switch task
    """
    return eventcode.count('LargeReward'), eventcode.count('SmallReward')