Using the multiplication principle we have:
(9)(10)(10)(10)(5)
In the first digit we have 9 options as it cannot be 8.
In the second, third and fourth digits we have 10 options.
In the last digit we have to take into account the odd digits, which are 5.
Multiplying the numbers, we have:
45000
The answer is 45000 codes.