#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, number;
  cin >> n >> number;
  int temp = 1, c = 0;
  while (temp <= number && temp <= n) {
    if (!(number % temp) && number / temp <= n) {
      c++;
    }
    temp++;
  }
  cout << c;
  return 0;
}
