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