#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
long long modpow(long long a, long long n) {
  long long ret = 1;
  long long b = a;
  while (n) {
    if (n & 1) ret = (ret * b) % 1000000007ll;
    b = (b * b) % 1000000007ll;
    n >>= 1;
  }
  return (long long)ret;
}
int main() {
  int n, k;
  cin >> n >> k;
  int x;
  int ans = 0;
  vector<int> arr(n);
  for (int i = 0; i < (int)n; i++) cin >> arr[i];
  sort(arr.begin(), arr.end());
  for (int i = 0; i < (int)n; i++) {
    int x = arr[i];
    while (2 * k < x) {
      k *= 2;
      ans++;
    }
    k = max(k, x);
  }
  cout << min(ans, ans);
  return 0;
}
