#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
using namespace std;
int n, c, k, a[100002], u = 0, v = 0, cnt;
int main() {
	cin >> n >> c >> k; for (int i = 0; i < n; i++)cin >> a[i];
	sort(a, a + n);
	u = a[0]; v = 0;
	for (int i = 0; i <= n; i++) {
		if (i == n || (i - v) >= c || (a[i] - u) > k) { cnt++; u = a[i]; v = i; }
	}
	cout << cnt << endl;
	return 0;
}