The total number of photons in the target is a meaningless concept, as recently pointed out. To estimate the transmitted photon fraction you should score photon current on the downstream boundary, as @illia.zymak detailed above.
Tot. resp. (Part/cmq/pr)
is the integral of the energy spectrum on the boundary divided by the input boundary area in cm^2.