Use range_size helper instead of Range#size