Telling three from four neutrinos at the neutrino factory