`count_nonzero` is not available in NumPy < 1.6.