def count_occupied_seats(seat_map):
    """Count all occupied seats at the end of the round."""
    occupied = 0
    for state in seat_map.values():
        if state == "#":
            occupied += 1
    return occupied