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