#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n, c, k, i, j, d, a[100100], ans;

    cin >> n >> c >> k;
    for(i = 0; i < n; ++i)
    {
        cin >> a[i];
    }
    sort(a, a + n);
    d = 1; ans = 1; j = a[0];
    for(i = 1; i < n; ++i)
    {
        if(a[i] - j <= k && d + 1 <= c)
            d++;
        else
        {
            ans++;
            j = a[i];
            d = 1;
        }
    }
    cout << ans;

return 0;
}
