python Count the probability for each number from count occurrence and store the result in probas code example
Example 1: count occurrences of value in array python
>>> l = ["a","b","b"]
>>> l.count("a")
Example 2: count values in list usiing counter
from collections import Counter