Supports getting a map determining the number of occurrences for different Int
Run-Length Encoding. Allows to generate and emit RLE chunks.