#include <bits/stdc++.h>
using namespace std;
void imprimirVector(vector<int> &v) {
  if (!v.empty()) {
    int p = v.size();
    cout << "[";
    for (int i = 0; i < (int)(p - 1); i++) cout << v[i] << ",";
    cout << v[p - 1] << "]" << endl;
  } else
    cout << "[]" << endl;
}
int main() {
  unsigned long long N, X;
  cin >> N >> X;
  unsigned long long count = 0;
  for (int i = (1); i < (int)(N + 1); i++) {
    if (X % i == 0) {
      if (i * N >= X) count++;
    }
  }
  cout << count << endl;
  return 0;
}
