#include <bits/stdc++.h>
int main(void) {
  int a, b, c;
  int i, divisor = 0;
  scanf("%d%d", &a, &b);
  i = a;
  while (i <= b) {
    if (c % i == 0) divisor++;
    i++;
  }
  printf("%d\n", divisor);
  return 0;
}
