python multidimensional arrays - most efficient way to count number of non-zero entries,sum(sum(1 for i in row if i) for row in rows)