A number is said to be regular if when a digit k appears in that number, the digit appears exactly k times. For example, the number 3133 is a regular number because the digit 1 appears exactly once and the digit 3 appears exactly three times. How many regular six-digit numbers are there?