using System.Collections.Generic;
public static void Main()
public static IEnumerable<int> Count(int start, int count)
throw new ArgumentOutOfRangeException(nameof(count));
return CountCore(start, count);
private static IEnumerable<int> CountCore(int start, int count)
for (int i = 0; i < count; i++)