#include <bits/stdc++.h>
int main() {
  int n, x, m, count;
  scanf("%d %d", &n, &m);
  for (x = 1, count = 0; x <= n; x++) {
    if (m % x == 0 && (m / x) <= n) {
      count = count + 1;
    }
  }
  printf("%d", count);
}
