Tom is thinking of a number. If he adds 4 to this number, he will get 10. What is the number that Tom is thinking of?