#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
    ll t;
    cin >> t;
    while (t--)
    {
        ll n;
        cin >> n;
        int a[n + 1];
        for (ll i = 0; i < n; i++)
        {
            cin >> a[i];
        }
        sort(a, a + n);
        int count = 1;
        int i = 1;
        int minDiff = INT_MAX;
        for (int i = 1; i < n; i++)
        {
            int diff = a[i] - a[i - 1];
            minDiff = min(minDiff, diff);
            if (minDiff >= a[i])
            {
                count++;
            }
            else
            {
                break;
            }
        }
        cout << count << "\n";
    }
}