Matlab Count Nonzero Elements