LINQ has aggregate methods for counting and adding values.

Count and Sum

CountSum.cs
using System;
using System.Linq;

class Program
{
    static void Main()
    {
        int passing = ;
        int[] scores = { 55, 72, 90 };
        int passed = scores.Count(score => score >= passing);
        int total = scores.Sum();

        Console.WriteLine($"passing={passing}");
        Console.WriteLine($"passed={passed}");
        Console.WriteLine($"total={total}");
    }
}
using System;
using System.Linq;

class Program
{
    static void Main()
    {
        int passing = ;
        int[] scores = { 55, 72, 90 };
        int passed = scores.Count(score => score >= passing);
        int total = scores.Sum();

        Console.WriteLine($"passing={passing}");
        Console.WriteLine($"passed={passed}");
        Console.WriteLine($"total={total}");
    }
}
using System;
using System.Linq;

class Program
{
    static void Main()
    {
        int passing = ;
        int[] scores = { 55, 72, 90 };
        int passed = scores.Count(score => score >= passing);
        int total = scores.Sum();

        Console.WriteLine($"passing={passing}");
        Console.WriteLine($"passed={passed}");
        Console.WriteLine($"total={total}");
    }
}
aggregate An aggregate method combines a sequence into one result.