#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long int n, c;
  cin >> n >> c;
  long int ar[n], i, sum = 0;
  for (i = 0; i < n; ++i) {
    cin >> ar[i];
    if (i != 0) {
      if ((ar[i] - ar[i - 1]) > c)
        sum = 0;
      else
        sum++;
    }
  }
  cout << sum + 1;
}
