#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int n, k;
  cin >> n >> k;
  vector<long long int> v;
  for (long long int i = 0; i < n; i++) {
    long long int d;
    cin >> d;
    v.push_back(d);
  }
  sort(v.begin(), v.end());
  long long int ans = 0;
  for (long long int i = 0; i < n; i++) {
    while (v[i] > 2 * k) {
      k = k * 2;
      ans++;
    }
    k = max(v[i], k);
  }
  cout << ans;
}
