In the present paper, we investigate the protocol for the generation of squeezed Fock states by measuring the number of particles from a two-mode entangled Gaussian state using a beam splitter and a controlled-Z operation. From two different perspectives, we analyzed two entanglement transformations in the protocol. We evaluated the energy costs and resource requirements of the analyzed schemes. Furthermore, we studied the impact of experimental imperfections on the non-Gaussian states generated by measuring the number of particles. We explored the effects of photon loss and imperfect detectors on the squeezed Fock state generation protocol.