N, K = map(int, input().split()) X = list(map(int, input().split())) ans = 0 l = -(1 << 60) for i in range(N): if X[i] - l >= K: ans += 1 l = X[i] print(ans)