python numpy: how to count the number of true elements in a bool array,np.count_nonzero(boolarr)