Surface to air is shot from the ground into the air at the target. Air to air is fired from another aircraft. Actually there is very little difference. just where the missile is fired from.
Of course, there can be many more surface-to-air missiles (SAM) than air-to-air (AAM) because an enemy aircraft can only carry a limited number.