#include <bits/stdc++.h>
using namespace std;
void print1D(int a[], int n) {
  for (int i = 0; i < n; i++) {
    cout << a[i] << " ";
  }
  cout << endl;
}
int main() {
  int n, c;
  cin >> n >> c;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  int i;
  for (i = n - 1; i >= 1 && a[i] - a[i - 1] <= c; i--) {
  }
  cout << n - i << endl;
}
