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