Number of points of an algebraic curve