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();
for (int i=0;i<n;i++) {
a[i]=sc.nextInt();
}
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;
}
}
}
sc.close();
}
}
aW1wb3J0IGphdmEudXRpbC4qOwoKcHVibGljIGNsYXNzIE1haW57CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CiAgICAgICAgU2Nhbm5lciBzYz1uZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwogICAgICAgIGludCB0PXNjLm5leHRJbnQoKTsKICAgICAgICB3aGlsZSh0LS0+MCl7CiAgICAgICAgICAgIGludCBuPXNjLm5leHRJbnQoKTsKICAgICAgICAgICAgbG9uZyB4PXNjLm5leHRMb25nKCk7CiAgICAgICAgICAgIEludGVnZXJbXSBhPW5ldyBJbnRlZ2VyW25dOwogICAgICAgICAgICBmb3IgKGludCBpPTA7aTxuO2krKykgewogICAgICAgICAgICAgICAgYVtpXT1zYy5uZXh0SW50KCk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgQXJyYXlzLnNvcnQoYSxDb2xsZWN0aW9ucy5yZXZlcnNlT3JkZXIoKSk7CiAgICAgICAgICAgIGludCBhbnM9MDsKICAgICAgICAgICAgaW50IGk9MDsKICAgICAgICAgICAgd2hpbGUoaTxuKXsKICAgICAgICAgICAgICAgIGJvb2xlYW4gZm91bmQ9ZmFsc2U7CiAgICAgICAgICAgICAgICBmb3IoaW50IGo9MTtqPD1uLWk7aisrKXsKICAgICAgICAgICAgICAgICAgICBpZigobG9uZylqKmFbaStqLTFdPj14KXsKICAgICAgICAgICAgICAgICAgICAgICAgYW5zKys7CiAgICAgICAgICAgICAgICAgICAgICAgIGkrPWo7CiAgICAgICAgICAgICAgICAgICAgICAgIGZvdW5kPXRydWU7CiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGlmKCFmb3VuZCl7CiAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKGFucyk7CiAgICAgICAgfQogICAgICAgIHNjLmNsb3NlKCk7CiAgICB9Cn0=