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