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