#include <bits/stdc++.h>
using namespace std;
int n, x;
int res = 0;
int main() {
  cin >> n >> x;
  int k = sqrt(x);
  if (n >= k) {
    if (k * k == x) res--;
    for (int i = k; i > 0; i--) {
      if (x % i == 0) {
        int temp = x / i;
        if (temp <= n)
          res += 2;
        else
          break;
      }
    }
  }
  cout << res;
  return 0;
}
