replace deprecated nnz with countnz
Merge pull request #25 from doomsplayer/patch-1

replace deprecated function nnz with countnz