#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d = 0, n;
  cin >> a >> b;
  for (a = a; a <= b; a = a + 1) {
    if (c % a == 0) {
      d = d + 1;
      a = a + 1;
    }
  }
  printf("%d\n", d);
  return 0;
}
