# calculate the number of elements in each chunk pdl> $idx = ($b/5)->floor pdl> $idx -= ($b - $idx * 5) == 0 pdl> p [$qidx->hist(-1,4,1)]->[1] [1 5 5 9 0]