count method

int count()

Implementation

int count() {
  var v = (end - begin) ~/ (this.jump == 0 ? 1 : this.jump) + 1;
  if (v < 1) return 0;
  return v;
}