#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c, ans, a, prev, i;
  cin >> n >> c;
  prev = 0;
  ans = 0;
  for (i = 0; i < n; i++) {
    cin >> a;
    if (i != 0 && ((a - prev) > c)) {
      ans = 1;
      prev = a;
    } else {
      ans++;
      prev = a;
    }
  }
  cout << ans;
}
