def count_flash(arr):
    """counts the number of flashed in a step"""
    flash = 0
    rows, columns = arr.shape[0], arr.shape[1]
    for row in range(rows):
        for col in range(columns):
            if arr[row,col] != '.' and int(arr[row,col]) > 9:
                flash += 1
                arr[row, col] = 0
    return arr, flash