#include <bits/stdc++.h>
using namespace std;
const int inf = (1 << 30) - 1;
const long long linf = (1ll << 62) - 1;
int main() {
  int n, x;
  cin >> n >> x;
  int ans = 0;
  for (int i = 1; i <= n; i++) {
    if (x % i == 0 && x / i <= n) {
      ans++;
    }
  }
  cout << ans << endl;
  return 0;
}
