UGameplayStatics::GetNumPlayerControllers

Returns the total number of available player controllers, including remote players when called on a server.