#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ai, b, k, ans = 0;
  cin >> n >> ai >> b >> k;
  int a[n];
  int cs = ai + b;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    a[i] = a[i] % cs;
    if (a[i] == 0) a[i] = cs;
    a[i] = (a[i] - 1 + ai) / ai - 1;
  }
  sort(a, a + n);
  for (int i = 0; i < n; i++) {
    if (a[i] <= k) {
      ans++;
      k = k - a[i];
    } else if (a[i] > k)
      break;
  }
  cout << ans << endl;
}
