#include <bits/stdc++.h>
using namespace std;
vector<int> vec{};
int numof(string sing, char x) {
  map<char, int> nuof;
  string a = sing;
  for (char c : a) {
    nuof[c]++;
  }
  return nuof[x];
}
int main() {
  ios_base::sync_with_stdio(0);
  int a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y,
      z, count, maxx, minn;
  a = b = c = d = e = f = g = h = i = j = k = l = m = n = o = p = q = r = s =
      t = u = v = w = x = y = z = count = 0;
  string st;
  char ch;
  cin >> n >> c;
  int arr[n];
  for (int i = 0; i < (int)(n); i++) cin >> arr[i];
  for (int i = (int)(n)-1; i >= 0; --i) {
    if (arr[i] - arr[i - 1] > c) {
      cout << n - i;
      return 0;
    }
  }
  cout << n;
}
