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