Degree of a projective variety