How many 3-digit numbers can made using the digits 2 3 4?

If you can repeat a digit, there are 27.

If you can't repeat a digit, there are only 6.