PUMaC 2013 Number Theory A Problem 5

Define a “digitized number” as a ten-digit number a_{0} a_{1} \ldots a_{9} such that for k=0,1, \ldots, 9, a_{k} is equal to the number of times the digit k occurs in the number. Find the sum of all digitized numbers.