def nod(n):
c,i=0,0
while n>0:
c=n%10
if c!=0:
i=i+1
n=n//10
print(i)#prints the number of digits in the given integer 'n'
how to make it able to count 'zeros'?