How many subgroups of order $n$ does $D_n$ have?

All subgroups and all normal subgroups are classified in K. Conrad's text on Dihedral Groups II, Theorem $3.1$ and $3.8$.

Section $3$ gives all subgroups of $D_n$, for $n$ odd and $n$ even. In particular, Theorem $3.1$ gives a complete listing of all subgroups, namely all $⟨r^d⟩$ with $d|n$, and all $⟨r^d,r^is⟩$, where $d|n$ and $0≤i≤d−1$.