In all, there are 9 digits from 1 to 9 inclusive.
If repetition is not allowed, then the number of different 4-digit codes is
9*8*7*6 = 3024.
If repetition is allowed, then the number of different 4-digit codes is
9*9*9*9 = = 6561.
Solved.
///////////////
As the problem is worded/printed in the post, it is a " lame horse ",
since it does not specify if repetition is allowed or not.