#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x;
  while (cin >> n >> x) {
    int ret = 0;
    for (int i = 1; i * i <= x && i <= n; ++i) {
      if (x % i == 0) {
        if (i * i == x)
          ++ret;
        else if (x / i <= n)
          ret += 2;
      }
    }
    cout << ret << endl;
  }
  return 0;
}
