Adding numpy count_nonzero & minor template fix

Have i missed something?
Dammit i knew it was too easy!