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