omp_get_team_size
int omp_get_team_size(int level)
Returns, for a given nested level of the current thread, the size of the thread team to which the ancestor or the current thread belongs.
OpenMP API Index