How do we get the count of concurrent session of video encoder from API of NVIDIA codec SDK?

We can not find the API to get concurrent session limit on NVIDIA Codec SDK.
There are no way to notice why video encoder session initialization is failed.
Do we have the way to get workaround this issue?

Discussion in this link is almost same this issue.