And then proper way of getting `valid[0].size` is `np.sum(valid)`? This seems less readable to me, but likely because I'm not used to Python.