#include <bits/stdc++.h>
using namespace std;
typedef vector<vector<long long> > vvl;
long long x, y, z, j, i, t, n, k, input, ans, flag, maxi, mini, a, b;
int main() {
  cin >> n >> x;
  ans = 0;
  for (long long i = 1; i <= n; i++) {
    if (x % i == 0 && x / i <= n) ans++;
  }
  cout << ans << "\n";
  return 0;
}
