def create_hist(array):
    """
    Create Histogram from 2D Numpy Array
    """
    # Histogram as a dictionary
    hist = {}
    rows, cols = array.shape
    
    # Iterate through the array
    for r in range(rows):
        for c in range(cols):
            if hist.get(array[r][c]) is None:
                hist[array[r][c]] = 1
            else:
                hist[array[r][c]] += 1
    return hist