How would you formally derive the fact that integer $100$ has 9 divisors $(1,2,4,5,10,20,25,50,100)$, knowing in advance that, apart from 1, its prime divisors are 2 and 5, each recurring 2 times $(2 \cdot 2 \cdot\ 5 \cdot 5 = 100)$?
This should be achievable using counting rules in combinatorics.