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