Counting points in families of nondegenerate curves by