Reduction operation that counts the non-zero elements. This operation reduces the dimensionality of the data: a matrix becomes a vector (count of non-zero elements in each column), and a vector becomes a scalar (count of non-zero elements). See the Julia documentation for details.