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