Counting four-digit numbers without certain digits appearing