#include <bits/stdc++.h>
int n, x;
int len;
int ans[111111];
void fun(int num) {
  len = 0;
  int i = 2;
  while (num >= 2) {
    if (num % i == 0) {
      ans[len++] = i;
      num /= i;
    } else
      i++;
  }
}
int main() {
  int i, j;
  int count;
  while (~scanf("%d%d", &n, &x)) {
    count = 0;
    for (i = 1; i <= n; i++) {
      if (x % i == 0 && x / i <= n) {
        count++;
      }
    }
    printf("%d\n", count);
  }
  return 0;
}
