In fact, I would try `np.bincount` instead of `histogram`, so you know that the indices will match up exactly... Assuming there's no drop in performance.