#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int rem, n, x, reps = 0;
  scanf("%lld%lld", &n, &x);
  for (long long int i = 1; i <= n; i++) {
    if (i > x) break;
    if (x % i == 0) {
      rem = x / i;
      if (rem <= n) reps++;
    }
  }
  printf("%lld\n", reps);
  return 0;
}
