
#include <vector>
#include <iostream>
#include <algorithm>

int main() {
  using namespace std;
  ios::sync_with_stdio(false);
  cin.tie(0);
  int tt;
  cin >> tt;
  while(tt--) {
    int n;
    cin >> n;
    vector<int> a(n);
    for (int& e : a) cin >> e;
    sort(a.begin(), a.end());
    int d = 1e9 + 7, ans = 0;
    for (int i = 0; i < n; i++) {
      if (a[i] <= 0) {
        ans++;
        if (i > 0) d = min(d, a[i] - a[i - 1]);
      }
      else if (a[i] <= d) {
        ans++;
        break;
      }
    }
    cout << ans << '\n';
  }
  return 0;
}
