On the class of an elliptic projective surface