Direct and scatterd photons

Hello,
I need your help.
I would like to know if it is possible with OpenMC to count or measure the number of direct and scattered photons or the flux of direct and scattered photons respectively?
In particular, I’ve already tried to use the tracking method by trying to use the energy or the number of states but I’ve already got a problem, I’m simulating 10000000 photons and my tracks.h5 file only returns 1000 photons and I don’t understand why.
If anyone has an idea of how I could do this or another idea to suggest, I’d love to hear from you.
I’ll leave my file attached if necessary.
project.py (9.8 KB)