How do I track score on collision

Hello,
I am a bit of a beginner in Unity and I was wondering if anyone could help me with keeping score with text but on collision, like the game Beat Saber.

Thanks,

I think this one does it:

Ok, Thanks man. I think it will do