This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] Let $y_i=d_i-1\in\{0,1,2,3\}$. Then $\sum y_i=12-7=5$ over $7$ digits. Without the upper limit: $\binom{11}{6}=462$. Cases with some $y_i\ge4$: choose that digit ($7$ ways) and distribute the remaining sum $1$ over $7$ digits ($\binom76=7$ ways): $49$. Two digits cannot both be $\ge4$. Count $=462-49=413$. Answer: 413.