def freq_(matrix):
    """
    Function that return the numbers of frequency for each element in the matrix
    
            Parameters:
                    matrix
            Returns:
                    result(dictionary): as the key the element and as value the numbers of frequency for each element
    """
    result = dict()
    for array in matrix:
        for el in array:
            result[el] = result.get(el,0) + 1
    return result