#include <bits/stdc++.h>
using namespace std;
int search(int n, int x) {
  int res = 0;
  for (int i = 1; i <= n; i++)
    if (x % i == 0 && x / i <= n) res++;
  return res;
}
int main(int agrc, char** argv) {
  int n, x;
  scanf("%d%d", &n, &x);
  printf("%d", search(n, x));
  return 0;
}
