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