On Curves with Prescribed Number of Points