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