INF = 1 << 60 N, K = map(int, input().split()) X = list(map(int, input().split())) ans = 0 prev = -INF for x in X: if x - prev >= K: prev = x ans += 1 print(ans)