#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const int inf = 99999999;
int main() {
  long long int n, k;
  while (~scanf("%lld%lld", &n, &k)) {
    long long int ans = 0;
    for (long long int i = 1; i <= n; ++i) {
      if (k > n * i) continue;
      if (k % i == 0) ans++;
    }
    printf("%lld\n", ans);
  }
}
