#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
int IT_MAX;
const int MOD = 9901;
const int INF = 1034567891;
const long long LL_INF = 1234567890123456789ll;
const double PI = 3.141592653589793238;
int main() {
  int N, X, i, ans = 0;
  scanf("%d %d", &N, &X);
  for (i = 1; i <= N; i++) {
    if (X % i == 0 && X / i <= N) ans++;
  }
  printf("%d", ans);
  return 0;
}
