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