I trying to prove $2^{\nu(n)} \leq d(n) \leq 2^{\omega(n)}$, where $n \geq 1$, $\nu(n) =$ number of distinct prime factors of $n$, $d(n)=$ total number of divisors of $n$ and $\omega(n)=$ number of prime factors counted with multiplicity.
$\textbf{My attempt:}$ Let $P$ be the set of all distinct prime factors of $n$. Then each divisor $m$ of $n$ can be identified with the subset of $P$ containing the primes in $m$. So, for each subset of $P$, there exists at least one divisor of $n$. So, the number of subsets of $P\leq d(n)$. That is, $2^{\nu(n)} \leq d(n)$. On the other hand, let $Q$ be the set of all prime factors of $n$ counted with proper multiplicities. (in fact, the repeated primes can be labelled differently to form the set $Q$). Then each divisor of $n$ corresponds to a subset of $Q$. Thus $d(n) \leq 2^{\omega(n)}$.
However, I think this proof is more of intuitive in nature and not so rigorous. Also, may be I am unable to put it in proper form. Is there a simpler or more rigorous way of proving this?
Hint: Consider the prime factorization of $n$, $n = {p_1}^{k_1}$${p_2}^{k_2}$...${p_j}^{k_j}$, where $p_1$, $p_2$,...$p_j$ are the distinct prime factors of $n$ & $k_i$ $\geq 1$ for all $i=1,2,...,j$
Can you figure out $ω(n)$, $d(n)$ & $ν(n)$ ? (hint: use the fact that these are multiplicative functions).