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