In-flight detection of few electrons using a singlet-triplet spin qubit