Number of generated rays?

Hello developers,
How can you calculate the number of generated rays per pixel in OptiX? can we change the number of generated rays?

It’s recommended to read forums before asking new questions.
The newest thread before yours was exactly explaining that:

The number of ray you shoot is completely under your control. You decide on the algorithm and how many rtTrace() calls you have inside your device code.
But don’t overdo it, at least not under Windows when running on the display device.