#include <bits/stdc++.h>
using namespace std;
int N, C, ans, A[1000010];
int main() {
  scanf("%d %d", &N, &C);
  for (int i = 1; i <= N; ++i) scanf("%d", A + i);
  ans = 1;
  for (int i = 2; i <= N; ++i) {
    if (A[i] - A[i - 1] > C) ans = 0;
    ++ans;
  }
  printf("%d", ans);
  return 0;
}
