title: To write a linq query to get selected name count
body: <p>Here I need to get the total count of name Murugan my output should be "2" . How to write Linq Query for that</p>
  
  <p><strong>Linq:</strong></p>
  
  <pre><code>Person[] names = {new Person { Name = "Murugan", Money = 15000 },
                                   new Person{Name="Vel",Money=17000},
                                   new Person{Name="Murugan",Money=1000},
                                    new Person{Name="Subramani",Money=18000},
                                   new Person{Name="Vel",Money=2500}};
  var result = from val in names
           where val.Name == "Murugan" 
           select val;
  Console.WriteLine(result);
  Console.ReadLine();
  </code></pre>