We present here a simple method for computing the large deviation of long time average for stochastic jump processes. We show that the computation of the rate function can be reduced to that of a partial differential equation governing the evolution of the probability generating function. The long time limit of this equation, which in many cases can be easily obtained, leads naturally to the rate function