Pion contamination in the MICE muon beam