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


#define ll long long


int main(){
  ios_base::sync_with_stdio(0);
  cin.tie(0);cout.tie(0);
  /////////////////////////////
  int t;
  cin>>t;
  while(t--){
    int n;
    cin>>n;
    ll a[n];
    vector<ll>v;
    for(int i=0;i<n;i++){
      cin>>a[i];
      if(a[i]<=0){
        v.push_back(a[i]);
      }
    }
    int vs = v.size();
    int ans= vs;
    sort(v.begin(),v.end());
    ll mind = 1e11;
    for(int i=0;i<vs-1;i++){
      mind = min(mind,v[i+1]-v[i]);
    }
    for(int i=0;i<n;i++){
      if(a[i]>0 && a[i]<=mind){
        ans++;
        break;
      }
    }
    cout<<ans<<endl;
  }
  return 0;
}
