I was learning about the relationship between the prime factors of a number and I came across this way to find the number of factors of a number. It goes like this if the prime factorization of a number $x= P_1^{L_1} P_2^{L_2} P_3^{L_3} \ldots$ then its number of factors is $(L_1 + 1)(L_2 + 1)(L_3 +1) \ldots$.
My question is can someone find a proof of this?
The prime $P_1$ can be a factor $0$ times, or $1$ time, or $2$ times up to $L_1$ times. Thus there are $L_1 + 1$ possibilities for $P_1$.
Likewise for $P_2$.
Likewise for $P_3$.
Just multiply these cases.
Example
Let $n=20 = 2^2 \cdot 5^1$
The factors are:
$2^0 \cdot 5^0$
$2^1 \cdot 5^0$
$2^2 \cdot 5^0$
$2^0 \cdot 5^1$
$2^1 \cdot 5^1$
$2^2 \cdot 5^1$