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