#include<bits/stdc++.h>
#include<iostream>
using namespace std;
#define ll unsigned long long
#define mod 1000000007
#define INF INT_MAX
#define yes cout<<"YES\n"
#define no cout<<"NO\n"
#define sp " "

ll mpow(ll a, ll b){
    if(!b)
        return 1;
    ll temp = mpow(a, b/2);
    temp = (temp * temp);
    if(b%2)
        return (a * temp);
    return temp;
}


int n;
void solve(){
    cin>>n;
    int arr[n];
    for(int i=0;i<n;i++){
        cin>>arr[i];
    }
    if(n==1){
        cout<<"1\n";
        return;
    }
    sort(arr,arr+n);
    set<int> s;
    s.insert(abs(arr[0]-arr[1]));
    for(int i=1;i<n-1;i++){
        if(*s.begin()<arr[i]){
           cout<<i<<"\n";
            return;
        }
        else{
            s.insert(abs(arr[i+1]-arr[i]));
        }
    }
    if(*s.begin()<arr[n-1]){
        cout<<n-1<<"\n";
        return;
    }
    cout<<n<<"\n";
   
}
int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    #ifndef ONLINE_JUDGE
 
freopen("input.txt", "r", stdin);
 
freopen("output1.txt", "w", stdout);
 
#endif // ONLINE_JUDGE

   int t=1;
  cin>>t;
   while(t--){
       solve();
   }
}
