I am doing another exercise from Liu. let X be a smooth geometrically connected projective curve over a field k of genus $g \geq 2$ Show that there exist at most $(2g-2)^{2g}$ points $x \in X(k)$ such that $X \setminus x$ is an affine plane curve.
In the first exercise, one showed that $\omega_{C/k} \cong \mathcal{O_C}$ if C is an affine plane curve, i.e a curve iomorphic to a closed subcheme of an open subscheme of $\mathbb{A}^2_k$. My thinking was that maybe we should use that the degree of the canonical divisor on X is $2g-2$, and then... I am not sure. Any hint?