Adding numpy count_nonzero & minor template fix

Have i missed something?
Yes faster, this way we keep the difference w/ numpy specialized bool