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