public class SortedSearch
public static void Main(string[] args)
Console.WriteLine("How many values are less than 4:");
Console.WriteLine(CountNumbers(new int[] { 1, 3, 5, 7 }, 4));
Console.WriteLine("\nHow many values are less than 6:");
Console.WriteLine(CountNumbers(new int[] { 1, 2, 4, 5, 7 }, 6));
Console.WriteLine("\nHow many values are less than 0:");
Console.WriteLine(CountNumbers(new int[] { -1, 2, 4, 5 }, 0));
public static int CountNumbers(int[] sortedArray, int lessThan)
throw new NotImplementedException("Waiting to be implemented.");