#include<bits/stdc++.h>
// #include<boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision;
using namespace std;
#define ll long long
#define ld long double
#define i1 int128_t
#define vl vector<long long>
#define vi vector<int>
#define sl set<long long>
#define si set<int>
#define uset unordered_set<long long>
#define sit set<long long>:: iterator
#define pb push_back
#define mp make_pair
#define all(x) x.begin(), x.end()
#define fi(i,a,b) for(long long i=a; i<b; i++)
#define fd(i,a,b) for(long long i=a; i>=b; i--)
#define fs(i,a,s) for(long long i=a; s[i]!='\0'; i++)
#define endl "\n"

bool googles = false;

void oo7(){
    ll n;   cin >> n;
    ll arr[n], pmin = LLONG_MAX;
    bool ok=false;
    vl negatives;
    fi(i, 0, n){
        cin >> arr[i];
        if(arr[i] < 1)  negatives.pb(arr[i]);
        else    pmin = min(pmin, arr[i]),ok=true;
    }
    sort(negatives.begin(), negatives.end());
    fi(i, 1, negatives.size()){
        if(abs(negatives[i] - negatives[i - 1]) < pmin){
            cout << negatives.size();   return;
        }
    }
    cout << negatives.size() + (ok);
}


int main(){
    // #ifndef ONLINE_JUDGE
    // freopen("input.txt","r",stdin);
    // freopen("output.txt","w",stdout);
    // #endif
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    // freopen("1input.txt","r",stdin);
    // freopen("1output.txt","w",stdout);

    int t = 1, i = 1;
    cin >> t;
    while(i <= t){
        if(googles) cout << "Case #" << i << ": ";
        oo7();
        cout << endl;
        i++;
    }

    // fclose(stdin);
    // fclose(stdout);
}