As per Lagrange's theorem, order of a subgroup must divide the order of the group. Since, the order of the group $p$ is prime, there is only $2$ possible orders for the subgroups -- $p$ and $1$ -- both giving the trivial subgroups.
So, the correct answer is $(D)$.
If the question had asked for "nontrivial" subgroups, answer would have been $0.$