The degree of a map between surfaces