Update ST_NumPoints

@mlecoeuvre Please see these corrections.