def probs_out_of_counts(array_counts):
    """
    function that takes an array-like object (e.g. a list) with counts and calculates
    the corresponding probabilities
    """

    sum_count = array_counts.sum()
    factor = 100/sum_count
    array_probs = []
    for i in array_counts:
        array_probs.append(i*factor)
    return array_probs