example that computes the number of lines that do not overlap given a list of lines