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