How many zeroes(Uva)?

Hi, i trying to solve this
The problem is about couting the no of occurences of zeroes in an interval.
Event though i read a tutorial a was not able to come up with solution any one please help … thank u

Read the updated answer from this link. Its really good, easy to understand and sufficient for this problem.