#include <bits/stdc++.h>
using namespace std;
int a[1008], n, k, q;
int main() {
  scanf("%d", &q);
  while (q--) {
    scanf("%d %d", &n, &k);
    for (int i = 1; i <= n; ++i) scanf("%d", &a[i]);
    sort(a + 1, a + n + 1);
    int ans = 0;
    for (int i = 2; i <= n; ++i) {
      ans += (k - a[i]) / a[1];
    }
    printf("%d\n", ans);
  }
  return 0;
}
