Digits Tracking

 Consider the list of cells in the figure.

 
 
Digits Tracking Puzzle
 
 

Each cell has a label which is a digit from 0 to 9.

Place a digit, from 0 to 9, in each cell in a way that the digit placed in cell i equals the number of times the digit i appears in the list.

For example, if you place digit 2 in Cell 1, then digit 1 must be placed in exactly 2 cells.

Source: Puzzle Corner - MIT

 
 

Diving Deeper