How many 4-digit numbers are there such that the thousands digit is equal to the sum of the other 3 digits?

Note: 0000 is not a 4-digit number.
3 answers 3