#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, x, count = 0;
  cin >> n >> x;
  for (int i = 1; i <= n; ++i) {
    long long s = i * n;
    if (s >= x && x % i == 0 && x >= i) count++;
  }
  cout << count << endl;
  return 0;
}
