#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:1677721600")
using namespace std;
int main() {
  int n, x;
  cin >> n >> x;
  int answer = 0;
  for (int i = 1; i <= (int)n; i++)
    if (x % i == 0 && x / i <= n) answer++;
  cout << answer;
  return 0;
}
