By using Cases with a transformation rule, you can find the number of points that were used to plot a curve. This is possible due to the fact that a Line object is simply a list of points.
Wolfram Language code: p = Plot[Sin[x], {x, 0, 20}]Wolfram Language code: Total[Cases[p, x_Line :> Length[x[[1]]], Infinity]]