def S_count_leftright_values(_data_list, _value):
    """
    Returns the number of samples to the left and the right of a sample from a data set as expressed by value
    """

    vals = sorted(_data_list)
    left_c = 0
    right_c = 0

    for i in vals:

        if _value > i:
            left_c += 1
        else:
            right_c += 1

    return (left_c, right_c)