#include <bits/stdc++.h>
// #define int long long
#define IOS ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define pb push_back
#define mod 1000000007
#define ff first
#define ss second
#define fill(a,b) memset(a,b,sizeof(a))
#define all(a) a.begin(),a.end()
#define allr(a) a.rbegin(),a.rend()
#define vi vector<int> 
#define pii pair<int, int>

using namespace std;

void print(int flag){
    if(flag) cout<<"YES\n";
    else cout<<"NO\n";
}

int32_t main(){  
    IOS;
    int t;
    cin>>t;
    while(t--){
       int n;
       cin>>n;
       int cnt=0;
       vi a;
       for(int i=0;i<n;i++){
           int x;
           cin>>x;
           a.pb(x);
       }
       sort(all(a));
       int mi=INT_MAX;
       int ans=1;
       for(int i=1;i<n;i++){
            mi=min(mi,abs(a[i]-a[i-1]));
           if(a[i]>mi) break;
           ans++;
          
       }
       cout<<ans<<"\n";
    }
      }
