#include <bits/stdc++.h>
int main() {
  int i, j, k, l;
  long long n, m, sum;
  while (scanf("%lld%lld", &n, &m) != EOF) {
    sum = 0;
    for (int i = 1; i <= n; i++) {
      if (m % i == 0 && m / i <= n) {
        ++sum;
      }
    }
    printf("%d\n", sum);
  }
  return 0;
}
