A finiteness theorem for a dynamical class of entire functions