0-9 digits how many four digit combinations can you have?

10,000, if it is possible to have all digits the same (0000). 9,991 if not (0001)

If all digits must be different (0123), then 5,040