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