#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
bool cmps(pair<long long, long long> p1, pair<long long, long long> p2) {
  return p1.second < p2.second;
}
int32_t main() {
  long long n, x;
  cin >> n >> x;
  long long ans = 0;
  for (long long i = 1; i <= n; i++) {
    if (x % i == 0 && x / i <= n) ans++;
  }
  cout << ans << endl;
  return 0;
}
