(8) coded for zeroes

also added an iteration counter to see how many times it loops through
without the zeroes.