fix off-by-one in findn and findnz

``count`` was equal to the number of nonzero elements plus one, so the output vectors had an extra element with junk.