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