def GetCounterSetting(counter_spec, name):
    """
    Retrieve a particular setting from a counter specification; if that setting is not present, return None.
    :param counter_spec: A dict of mappings from the name of a setting to its associated value.
    :param name: The name of the setting of interest.
    :return: Either the value of the setting (if present in counterSpec) or None.
    """
    if name in counter_spec:
        return counter_spec[name]
    return None