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