How to count the number of true elements in a NumPy bool array

Published --