#include <bits/stdc++.h>
int main() {
  int n, x, count = 0, r, k;
  scanf("%d%d", &n, &x);
  for (int i = 1; i <= n; i++) {
    k = x / i;
    r = x % i;
    if (r == 0 && k * i == x && k <= n) {
      count++;
    }
  }
  printf("%d\n", count);
  return 0;
}
