#include<bits/stdc++.h>
using namespace std;
#define endl '\n'
#define optimize() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define fraction() cout.unsetf(ios::floatfield); cout.precision(10); cout.setf(ios::fixed,ios::floatfield);
const int mx=1e5+123;
int arr[mx];
long long x,cnt;
int main()
{
    optimize();
    int t;
    cin>>t;
    while(t--){
        int n;
        cin>>n;

        int arr[n];
        for(int i=0;i<n;i++)cin>>arr[i];
        sort(arr,arr+n);
        int i=1,x=arr[1]-arr[0];
        while(i<n){
            if(arr[i]-arr[i-1]<x)
            x=arr[i]-arr[i-1];

            if(arr[i]<=x)i++;
            else break;
        }
        cout<<i<<endl;
        
    }


    return 0;
}