Ermakov systems, Noether's theorem and the Sarlet-Bahar method