Reference: Neukirch - ANT p.49
Let $R$ be a Dedekind domain with the quotient field $K$ and $L/K$ be a finite separable field extension and $A$ be the integral closure of $R$ in $L$.
Let $\theta\in A$ such that $L=K(\theta)$ and define $J:=\{\alpha\in A: \alpha A\subset R[\theta]\}$ and $m$ be the minimal polynomial for $\theta$ over $K$.
Let $d$ be the discriminant of the polynomial $m$, so that $d=\prod_{0\leq i<j\leq n-1} (\theta^i -\theta^j)$ where $n=[L:K]$.
The text shows that any prime ideal satisfying $d\notin P$ and $PA+J=A$ is unramified in $L$.
How do I conclude that there are only finitely many ramified prime ideals in $L$? That is, how do I prove that there are finitely many prime ideals satisfying $d\in P$ or $PA+J\neq A$?
Since $R$ is a Dedekind domain, of course, there are finitely many prime ideals satisfying $d\in P$. However, why are there finitely many prime ideals $P$ such that $PA+J\neq A$?