#include <bits/stdc++.h>
using namespace std;
const long long int INF = 1e18;
const int inf = 1e9;
const int MOD = 1e9 + 7;
const int nax = 1000000 + 10;
int n, arr[nax];
int main() {
  ios::sync_with_stdio(0);
  int maxi;
  cin >> n >> maxi;
  for (int i = 1; i <= n; i++) cin >> arr[i];
  sort(arr + 1, arr + n + 1);
  int ans = 0;
  for (int i = 1; i <= n; i++) {
    if (arr[i] <= 2 * maxi) {
      maxi = max(maxi, arr[i]);
      continue;
    }
    ans++;
    maxi = 2 * maxi;
    i--;
  }
  cout << ans;
  return 0;
}
