convert values -> number in histogram