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

int main(){

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

	int t;
	cin >> t;
	while(t--){
		int n;
		cin >> n;
		int a[n];
		for(int i=0;i<n;i++){
			cin >> a[i];
		}
		sort(a,a+n);
		int ls=a[n-1];
		int temp,count=0,maxcnt=0;
		if(a[0]>=1){
			cout << 1 << endl;
		}
		else{
			int kt=n-1;
			int f1=1;
			while(a[kt]>0){
				kt--;
				f1*=0;
			}
			if(f1==0){
				kt++;
			}
		for(int k=kt;k>=0 && k>=maxcnt;k--){
				ls=a[k];
				if(ls>0){
					count=0;
					for(int i=k;i>=0;i--){
						// cout << "<" << ls << ">";
						// cout << "==" << a[i];
						temp=a[i];
						count++;
						int j=i-1;
						while(abs(temp-a[j])<ls && j>=0){
							j--;
						}
						j++;
						if(j==-1 && abs(temp-a[j+1])>=ls){
							count++;
						}
						i=j;
					}
					// cout << endl;
				}
				else{
					count=k+1;
				}
				// cout << a[k] << " " << count << endl;
				
				maxcnt=max(count,maxcnt);
				if(ls<=0){
					break;
				}
				int flag=1;
				while(a[k-1]==ls && k>=0){
					k--;
					flag*=0;
				}
				if(flag==0){
					k++;
				}

		}
		cout << maxcnt << endl;
		}
	}

return 0;
}