#include<bits/stdc++.h>
using namespace std;

#define int long long
#define endl "\n"
#define ios ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)

/*
int a[100];
signed main()
{
    ios;
    int t;
    cin>>t;
    while(t--)
    {
        int n;
        cin>>n;
        for(int i=1;i<=n;i++)
        {
            cin>>a[i];
        }
        if(n==1) cout<<0<<endl;
        else{
            sort(a+1,a+n+1);
            int d=0;
            for(int i=2;i<=n;i++)
            {
                if(a[i]>a[1]) d++;
            }
            cout<<d<<endl;
        }
    }
}
*/



signed main()
{
    ios;
    int t;
   cin>>t;
   while(t--)
   {
       int n;
       cin>>n;
       
       int a[n];
       for(int i=0;i<n;i++)
       {
           cin>>a[i];
       }
        sort(a,a+n);
       int ans=1;
       int mm=1e10;
       for(int i=1;i<n;i++)
       {
            mm=min(mm,abs(a[i]-a[i-1]));
         //  cout<<a[i]<<" "<<min1<<endl;
           if(mm <a[i]) break;
           else ans++;
       }
       cout<<ans<<endl;
   }
  
	return 0;
}
