Create a programs that counts the 0's in numbers from 0 to a billion This will be my very first post on stackexchange so bear with me.

Create a program that counts from 0 to 1,000,000,000.
Now the trick is to not print all these characters but to only print how many zeroes are in that number. And keep track of the total amount of zeroes you've encountered. For example

10


Will output;

1
2


because 10 has 1 zero in it. The two represents how many 0's you've seen in total, in this case the only zero you have encountered previously is 0 itself so you've seen a total of 2 zeroes. 
The highest score will be given to the shortest code (no surprise here).

I hope that this is not too easy and that I've posted enough information, given the fact that I'm completely new here I'm not entirely sure about this.
Python (brute force, 80 chars)

def r(n):
    l=[str(i).count('0') for i in xrange(n+1)]
    return l[-1],sum(l)


Just to asure, i got the task right, it evaluates to:

r(10)
&gt;&gt;&gt; (1, 2)
r(1000000000)
&gt;&gt;&gt; (9, 788888899)