Total number of four digit numbers is 9 X 10 X 10 X 10 = 9000.
Number of four digit numbers with number 5 in them can be found out in the following manner.
First digit can neither be zero nor 5. So, the first digit can be chosen in eight ways, the second, third and fourth digit each can be chosen in 9 ways as there is no restriction of not choosing 0. Hence, the number of 4 digit numbers with number 5 in them = 8 X 9 X 9 X 9 = 5832.
Total number of four digit numbers with at least one 5 in them = 9000 – 5832 = 3168