Cuda nvcuvenc

How to get NVCUVENC and sample to encode video ? and how many sessions can NVCUVENC support at the same time in a system?