def count_att(data, column, value):
    """
    :param data: Pandas DataFrame
    :param column: specific column in the dataset
    :param value: which value in the column should be counted
    :return: probability of (value) to show in (column), included Laplacian correction
    """
    dataset_len = len(data)
    try:  # if (value) not been found then return laplacian calculation to preserve the probability
        p = data[column].value_counts()[value] / dataset_len
        if p == 0:
            p = 1 / (dataset_len + len(data[column].value_counts()))
        return p
    except KeyError:
        return 1 / (dataset_len + len(data[column].value_counts()))