Lesser digits

How many positive integers less than or equal to 4000 can be written down without using the digits 7, 8 or 9?

Problem

How many positive integers less than or equal to 4000 can be written down without using the digits 7, 8 or 9?