#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int i, a, b, c, d, e = 0, m = 0;
  cin >> a >> b;
  for (i = 1; i <= a; i++) {
    if (b % i == 0) {
      if (b / i <= a) {
        m++;
      }
    }
  }
  cout << m << endl;
}
