MPI_Comm_remote_size

int MPI_Comm_remote_size(MPI_Comm, int *);
Returns the size of the remote group of an inter-communicator.