#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, res = 0;
  cin >> n >> x;
  vector<int> v;
  for (int i = 1; i <= sqrt(x); i++) {
    if (x % i == 0) v.push_back(i);
  }
  vector<int>::iterator ptr;
  for (ptr = v.begin(); ptr < v.end(); ptr++) {
    int k = *ptr;
    if (k <= n && (x / k) <= n) res++;
  }
  if (sqrt(x) > (int)sqrt(x))
    cout << (2 * res);
  else {
    int lp = (2 * res) - 1;
    if (lp < 0)
      cout << 0;
    else
      cout << lp;
  }
}
