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

#define ll long long
#define ld long double
#define endl '\n'

int main() {

#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif

	ll t;
	cin >> t;
	while (t--) {
		ll n;
		cin >> n;
		ll a[n], minPos = LLONG_MAX;
		ll ans = 0, c0 = 0;
		for (ll i = 0; i < n; i++) {
			cin >> a[i];
			if (a[i] <= 0) {
				ans++;
			}
			if (a[i] == 0) {
				c0++;
			}
			if (a[i] > 0) {
				minPos = min(minPos, a[i]);
			}
		}
		if (ans == 0) {
			cout << 1 << endl;
			continue;
		}
		if (minPos == LLONG_MAX || c0 > 1) {
			cout << ans << endl;
			continue;
		}
		sort(a, a + n);
		for (ll i = 0; i < n; i++) {
			if (abs(a[i + 1] - a[i]) < minPos && a[i + 1] <= 0) {
				ans--;
				break;
			}
		}
		cout << ans + 1 << endl;

	}

	return 0;
}