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