#include <bits/stdc++.h>
using namespace std;
void code() {
  long long n, x;
  cin >> n >> x;
  long long ans = 0;
  for (long long i = 1; i <= n; i++) {
    if (x % i == 0) {
      if (x / i <= n) {
        ans++;
      }
    }
  }
  cout << ans << endl;
}
signed main() { code(); }
