Time-resolved detection of photon–surface-plasmon coupling at the single-quanta level