private static int GetMaxCount(Line[] values) { return values .Select(w => w.Sections.Length) .Concat(new[] {1}) .Max(); }