#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, k;
  cin >> n >> k;
  vector<long long> v(n);
  for (long long c = 0; c < n; c++) cin >> v[c];
  sort(v.begin(), v.end());
  long long kol = 0, now = k;
  for (long long c = 0; c < n; c++) {
    while ((v[c] - 1) / 2 + 1 > now) {
      now *= 2;
      kol++;
    }
    now = max(now, v[c]);
  }
  cout << kol;
  return 0;
}
