_indices_to_counts seems to be unused.