Fetch params from config
empty lines cleanup
Put code responsible for counting in a function template, add genParticle counter and handler