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