#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, t, n, x;
  cin >> t;
  while (t--) {
    cin >> n;
    set<int> b;
    int a;
    while (n--) {
      cin >> a;
      while (a % 2 == 0) {
        b.insert(a);
        a /= 2;
      }
    }
    cout << b.size() << endl;
  }
  return 0;
}
