Teaser 2518: [Empty boxes]

From The Sunday Times, 26th December 2010 [link] [link]

For an appropriate Boxing Day exercise, write a digit in each of the empty boxes so that (counting all the digits from here to the final request) the following statements are true:

Number of occurrences of 0 = [ _ ]
Number of occurrences of 1 = [ _ ]
Total occurrences of 2s and 3s = [ _ ]
Total occurrences of 4s and 5s = [ _ ]
Total occurrences of 6s and 7s = [ _ ]
Total occurrences of 8s and 9s = [ _ ]
A digit you have written in another box = [ _ ]
The average of all your written digits = [ _ ]

What, in order, are the digits in your boxes?

This puzzle was originally published with no title.

[teaser2518]