A measurement of the neutrino flux from a stopped-pion source