How many 4 digit numbers greater than 5000 can be formed by using the digits 2, 3, 5, 6, 7 and 8 such that digits can get repeated?