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