#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, c, t, sum = 0;
  cin >> n;
  cin >> c;
  cin >> t;
  sum++;
  int a = t;
  for (int i = 1; i < n; i++) {
    cin >> t;
    if (t - a <= c)
      sum++;
    else if (t - a > c)
      sum = 1;
    a = t;
  }
  cout << sum << endl;
  return 0;
}
