#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, c = 0;
  cin >> a >> b;
  for (int j = 2; j <= a; j++) {
    if (b % j == 0 && (b / j) <= a) c++;
  }
  if (a >= b)
    cout << c + 1 << endl;
  else
    cout << c << endl;
  return 0;
}
