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