using System;
using System.IO;
using System.Linq;
using System.Xml.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass
{
public static void Main()
{
TextReader sr;
int whiteSpaceNodes;
sr = new StringReader(" ");
XDocument xmlTree1 = XDocument.Load(sr, LoadOptions.None);
sr.Close();
whiteSpaceNodes = xmlTree1
.Element("Root")
.DescendantNodesAndSelf()
.OfType()
.Where(tNode => tNode.ToString().Trim().Length == 0)
.Count();
Console.WriteLine(whiteSpaceNodes);
}
}