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