Astronomers log 40,000th near-Earth asteroid as space agency warns of rising detection pace