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