A bound on the number of points of a curve in projective space over a finite field