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