#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x;
  cin >> n >> x;
  if (x == 1) {
    cout << "1" << endl;
    return 0;
  }
  int ans = 0;
  if (1 < x && x <= n) ans += 2;
  for (int i = 2; i <= n; i++) {
    if (x % i == 0 && 1 < (x / i) && (x / i) <= n) ans++;
  }
  cout << ans << endl;
  return 0;
}
