Counting how many times a row occurs in a matrix (numpy),(array_2d == row).all(-1).sum()