#include <bits/stdc++.h>
using namespace std;
int b[3200005];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n, i, j, c = 0, p = 0, f = 0, s = 0, m = INT_MAX;
    cin >> n;
    int a[n + 1];
    for (i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] % 2 == 0) {
        while (a[i] % 2 != 1) {
          b[p] = a[i];
          a[i] = a[i] / 2;
          p++;
        }
      }
    }
    sort(b, b + p);
    for (i = 0; i < p; i++) {
      if (b[i] != b[i + 1]) {
        c++;
      }
    }
    cout << c << endl;
    for (i = 0; i < p + 5; i++) b[i] = 0;
  }
}
