using System;
using System.Linq;
public class Program
{
public static void Main()
var text = @"
// Take out this comment, and it works. Leave it in and the output is a blank line.
X + Y";
var lines = text.Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
Console.Write(lines.Count());
}