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