#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); }
int main() {
  long long int n, c, i, a[100001], w = 0;
  cin >> n >> c;
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (i = 0; i < n - 1; i++) {
    if (a[i + 1] - a[i] <= c)
      w++;
    else
      w = 0;
  }
  cout << w + 1;
  return 0;
}
