text1r: add number of points as a parameter