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