Evolution of the Cosmological Mass Function in a Moving Barrier Model