print the number of non-zero in a frame