Ray path information

Hi,

i am trying to find out how many times a ray has been reflected until the execution of my shader. Is that possible?
I now that I can get information about the ray by using the raytype function. But that only tells me of what type the ray is, or what it has been before. It doesn’t tell me how many times the ray has “bounced”.