#include <bits/stdc++.h>
using namespace std;
int main() {
  long long m, k, tem, count, i;
  cin >> m >> k;
  if (m > k) {
    tem = k, m = k, m = k;
  }
  count = 0;
  for (i = 1; i <= m; i++) {
    if (k % i == 0 && k / i <= m) count++;
  }
  cout << count << endl;
  return 0;
}
