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