#include <bits/stdc++.h>
using namespace std;
bool lucky(int n) {
  while (n > 0) {
    int d = n % 10;
    if (!(d == 4 || d == 7)) {
      return 0;
    }
    n /= 10;
  }
  return 1;
}
const int pl = 1000005;
bool prime[pl];
std::vector<int> pr;
void make_sieve() {
  memset(prime, 1, sizeof(prime));
  prime[0] = prime[1] = 0;
  for (int i = 2; i * i < pl; i++) {
    if (prime[i]) {
      for (int j = i * i; j < pl; j += i) {
        prime[j] = 0;
      }
    }
  }
  for (int i = 0; i < pl; i++)
    if (prime[i]) pr.push_back(i);
}
int main() {
  int n, x;
  cin >> n >> x;
  int ans = 0;
  for (int i = 1; i <= n; i++) {
    if (x % i == 0 && x / i >= 1 && x / i <= n) {
      ans++;
    }
  }
  cout << ans;
}
