G4CellScorer obsolete

Hello! I’m looking for something that can count the number of collisions with a boundary and i found this: //collisions counting if (aStep.GetPostStepPoint()->GetStepStatus() != fGeomBoundary) { fCellScoreComposer.SetCollisionWeight(aStep.GetTrack()->GetWeight()); }
But the file says that g4cellscorer is obsolete. What can i use instead to count the collisions?
Thanks to all.