This paper establishes the existence of a solution to the optimization problem. Supposing that risk assets pay continuous dividend regarded as the function of time. It is established that the behaviour model of the stock pricing process is jump-diffusion driven by a count process. We give a characterization of the optimal portfolio by means of the value function and the equivalent martingale measure defined by the utility function. The unique equivalent martingale measure, the unique optimal consumption and portfolio pair and the corresponding wealth process are deduced. We provide a simple characterization of an equilibrium market and discuss existence and uniqueness of equilibrium in the economy.