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