#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 9;
int _, n, k;
int a[N];
int main() {
  for (scanf("%d", &_); _; _--) {
    scanf("%d %d", &n, &k);
    int mini = 1e9 + 9, res;
    for (int i = 1; i <= n; i++) {
      scanf("%d", &a[i]);
    }
    sort(a + 1, a + n + 1);
    int ans = 0, min1 = a[1], min2 = a[2];
    for (int i = n; i >= 2; i--) {
      ans += (k - a[i]) / a[1];
    }
    cout << ans << "\n";
  }
}
