Q:

Using linq how to get counts of integer in my list

I have a list of numbers in my array. I need to get count of number which are less than 5.
How may i achieve this? 
I know using count method, I can do this but while am trying to invoke c.Count() there is no method like count is showing is showing. Is there any other method to get count?
var num = from c in list 
          where c < 5
          select c; 

A:

Simply, using Enumerable.Count which takes a Func<T, bool>:
var numberCount = list.Count(n => n < 5);

A:

Try it out this will work as your needs 
var num = (from c in list 
where c < 5
select c).Count(); 

