#include <bits/stdc++.h>
const int INF = INT_MAX;
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(false);
  int n, x;
  cin >> n >> x;
  int ans = 0;
  for (int i = 1; i <= n; i++)
    if (x % i == 0 && x / i <= n) ans++;
  cout << ans;
  return 0;
}
