Curves with many points