N, K = map(int, input().split()) last = -(1 << 60) ret = 0 for x in map(int, input().split()): if x >= last + K: last = x ret += 1 print(ret)