#include <bits/stdc++.h>
using namespace std;
const int N = 1e9;
int main() {
  int c, n, count = 0;
  scanf("%d %d", &c, &n);
  for (int i = 1; i <= c; i++) {
    if (n % i == 0 && n / i <= c) count++;
  }
  cout << count << endl;
  return 0;
}
