According to the multiplication principle, if an event occurs n times and another independent event occurs m times, then the two events can occur in n x m different ways.
In the PIN case, you have to select 4 digits, i.e, 4 different independent events.
For each digit, you have 10 options (1 to 9 plus 0). so the total number of combinations would be 10 x 10 x 10 x 10 = 10000.
That's a kind of complicated way of saying that are 10^n different n-digit numbers.
Or, if you don't want to restrict yourself to base 10, there are b^n n-digit numbers in base b.