def find_num_of_islands(land_map):
    islands_found = 0
    for i in range(len(land_map)):
        for j in range(len(land_map[0])):
            if (land_map[i][j] == 1):
                islands_found += 1
                land_map = mark_island(i, j, land_map, marker='i')
    return islands_found
def find_num_of_islands(land_map):
    islands_found = 0
    for i in range(len(land_map)):
        for j in range(len(land_map[0])):
            if (land_map[i][j] == 1):
                islands_found += 1
                land_map = mark_island(i, j, land_map, marker='i')
    return islands_found