#include <bits/stdc++.h>
int main() {
  long long int n, x, r, z;
  scanf("%I64d %I64d", &n, &x);
  z = 0;
  if (x <= n * n) {
    for (r = 1; r <= n; r++) {
      if (x % r == 0 && x / r <= n) {
        z = z + 1;
      }
    }
  }
  printf("%I64d", z);
  return 0;
}
