#include <bits/stdc++.h>
using namespace std;
 
#define all(c) (c).begin(), (c).end()
using ll = long long;
using ld = long double;

int a[100005];

void solve() {
    int n;
    cin >> n;
    for(int i = 0; i < n; ++i) cin >> a[i];
    sort(a, a + n);
    int k = 0, ans = 0;
    int mn = abs(a[k] - a[k+1]);
    while(mn >= a[k+1] && k < n-1){
        ans++;
        k++;
        if(abs(a[k] - a[k+1]) < mn) mn = abs(a[k] - a[k+1]);
    }
    cout << ans + 1 << '\n';
}
 
int main() {
    ios_base::sync_with_stdio(NULL);
    cin.tie(0);
    cout.tie(0);
    int tt;
    cin >> tt;
    while(tt--) solve();
    return 0;
}
