Count different topologies in the monte carlo data (TTree)