#include <bits/stdc++.h>
using namespace std;
int a[100006], b[100006];
int main() {
  long long int n, m = 0, t, c = 0, i, j, k = 0;
  cin >> t;
  while (t--) {
    cin >> n;
    set<long long int> s;
    while (n--) {
      cin >> m;
      while (m % 2 == 0) {
        m /= 2;
        s.insert(m);
      }
    }
    cout << s.size() << endl;
  }
  return 0;
}
