[Numpy-discussion] Count occurrences in a nested ndarray