#include<iostream>
#include<bits/stdc++.h>
using namespace std;
#define sz(a) int((a).size())
#define pb push_back
#define all(c) c.begin(), c.end()
#define ll long long

int main(){
    ios_base::sync_with_stdio(0);

    int t=1;cin>>t;
    while(t--){
       int n;cin>>n;
       int a[n];
       int k=0;int ans=0;
       for(int i=0;i<n;i++){cin>>a[i];
        if(a[i]<=0)ans++;
        else k++;
        
       }
       if(n==1){cout<<1<<"\n";continue;}
       
       sort(a,a+n);

       ll mi = 1e18;
       int i;
       for(i=1;i<n;i++){
        if(a[i]<=0) mi = min(mi, 1LL*(a[i]-a[i-1]));
        else break;
       }
       //cout<<i<<" ";
        

       if(a[i]<=mi && i<n )ans++;

       cout<<ans<<"\n";     
    }
    return 0;
}