#include <bits/stdc++.h>
int main() {
  int n, x, rslt = 0;
  std::cin >> n >> x;
  int optimiz = trunc(sqrt((double)x));
  for (int i = 1; i <= optimiz; i++) {
    if ((x % i == 0) && (i <= n) && (x / i <= n)) {
      rslt++;
    }
  }
  rslt *= 2;
  double bufer = (sqrt((double)x) - round(sqrt((double)x)));
  if ((bufer >= -0.001) && (bufer <= 0.001)) {
    if (rslt > 0) rslt -= 1;
  }
  std::cout << rslt;
  return 0;
}
