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