#include <bits/stdc++.h>   using namespace std;   int t, n;   int hmz, hmbz, bsz = -100000, sum;   int main() {     cin >> t;     for (; t; t--) {       cin >> n;       hmz = 0;       hmbz = 0;       bsz = -100000;       sum = 0;       for (int i = 1; i <= n; i++) {         int x;         cin >> x;         if (x == 0)           hmz++;         else if (x < 0)           bsz = max(bsz, x);         else           hmbz++;         sum += x;       }       int sol = 0;       if (hmz) sum += hmz, sol += hmz;       if (sum == 0) {         if (hmbz)           sol++;         else           sol += (1 - hmbz);       }       cout << sol <<   n ;     }     return 0;   }   