using System.Collections.Generic;

var scores = new List<int> { 86, 63, 91, 74, 58, 95 };
var passingScores = CountAtOrAbove(scores, 70);

Console.WriteLine($"{passingScores} scores are at least 70.");

int CountAtOrAbove(List<int> values, int minimum)
{
    var count = 0;

    foreach (var value in values)
    {
        if (value >= minimum)
        {
            count++;
        }
    }

    return count;
}
