How many two-digit prime numbers can be formed by choosing two different digits from the set $\{2, 7, 8, 9\}$ to be used as the tens digit and units digit?

Let's think step by step and output the final answer within \boxed{}.
user