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