Adding numpy count_nonzero & minor template fix

Have i missed something?
I feel the template could be specialized instead of using SFINAE, isn't it?