fn sum(ranges: &[[u32; 2]], input: &[[u64; 2]]) -> u64
Generate the start and end values for a set, then sum the number of values contained in the given id range.