#include <bits/stdc++.h>
using namespace std;
class ACopyPaste {
 public:
  void solve(istream& in, ostream& out) {
    int t;
    in >> t;
    while (t--) {
      int n, k;
      in >> n >> k;
      int a[n], min = 10000, ind = -1;
      for (int i = 0; i < n; i++) {
        in >> a[i];
        if (min > a[i]) {
          min = a[i];
          ind = i;
        }
      }
      long long ans = 0;
      for (int i = 0; i < n; i++) {
        if (i != ind) {
          ans += (k - a[i]) / min;
        }
      }
      out << ans << '\n';
    }
  }
};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  ACopyPaste solver;
  std::istream& in(std::cin);
  std::ostream& out(std::cout);
  solver.solve(in, out);
  return 0;
}
