#include <bits/stdc++.h>
using namespace std;

int main() {
  int n, c, k; cin >> n >> c >> k;
  int a[n]; 
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a+n);
  int ran = 0, cnt = 0;
  for (int i = 0; i < n; i++) {
    if (a[ran] + k< a[i]||i-ran+1>c) {
      ran = i;
      cnt++;
    }
  }
  cout << cnt+1 << endl;
  return 0;
}

