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