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