Edited: stat helper(non-perfect because of taking only non-zero values)