#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:100000000")
#pragma GCC optimize("O500")
using namespace std;
const bool db = false;
int main() {
  ios::sync_with_stdio(0);
  int n, x;
  cin >> n >> x;
  int cnt = 0;
  for (int i = 1; i <= n; i++)
    if (x % i == 0 && x / i <= n) cnt++;
  cout << cnt << '\n';
  return 0;
}
