import java.util.*;

public class Main{
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int t=sc.nextInt();
        while(t-->0){
            int n=sc.nextInt();
            long x=sc.nextLong();
            Integer[] a=new Integer[n];
            for (int i=0;i<n;i++) {
                a[i]=sc.nextInt();
            }
            Arrays.sort(a,Collections.reverseOrder());
            int ans=0;
            int i=0;
            while(i<n){
                boolean found=false;
                for(int j=1;j<=n-i;j++){
                    if((long)j*a[i+j-1]>=x){
                        ans++;
                        i+=j;
                        found=true;
                        break;
                    }
                }
                if(!found){
                    break;
                }
            }
            System.out.println(ans);
        }
        sc.close();
    }
}