#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x;
  scanf("%d", &n);
  scanf("%d", &x);
  int count = 0;
  int sqr = sqrt(x);
  if (x <= n) count += 2;
  for (int i = 2; i <= sqr && i <= n; i++) {
    if (x % i == 0) {
      if (x / i <= n) count += 2;
    }
  }
  if (sqr <= n && sqr * sqr == x) count -= 1;
  cout << count << endl;
  return 0;
}
