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