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:
https://devtalk.nvidia.com/default/topic/842340/optix/optix-gt-raytracing-benchmark/

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.
https://devtalk.nvidia.com/default/topic/806609/?comment=4435008