#include <bits/stdc++.h>
using namespace std;
template <class T>
void inp(T &x) {
  char c = getchar();
  x = 0;
  for (; (c < 48 || c > 57); c = getchar())
    ;
  for (; c > 47 && c < 58; c = getchar()) {
    x = (x << 1) + (x << 3) + c - 48;
  }
}
const int inf = 0x3f3f3f3f;
const double pi = acos(-1.0);
const double eps = 1e-15;
const int maxn = 100 + 5;
int a[maxn], n, k, ans;
int main() {
  cin >> n >> k;
  ans = 0;
  for (int i = 0; i < n; i++) scanf("%d", &a[i]);
  sort(a, a + n);
  int i;
  for (i = 0; i < n; i++) {
    if (a[i] > 2 * k)
      break;
    else
      k = max(k, a[i]);
  }
  if (i == n) {
    printf("%d\n", ans);
    return 0;
  }
  while (i < n) {
    ans++;
    k = 2 * k;
    for (; i < n; i++) {
      if (a[i] > 2 * k)
        break;
      else
        k = max(k, a[i]);
    }
  }
  printf("%d\n", ans);
}
