#include <bits/stdc++.h>
using namespace std;
long long int gcd(long long int a, long long int b) {
  if (a % b == 0) return b;
  gcd(b, a % b);
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  long long int n, x, d, c = 0;
  scanf("%lld %lld", &n, &x);
  for (long long int i = 1; i <= n; i++) {
    if (x % i == 0) {
      d = x / i;
      if (d >= 1 && d <= n) c++;
    }
  }
  printf("%lld\n", c);
  return 0;
}
