MPI_Comm_size

int MPI_Comm_size(MPI_Comm, int *);
Returns the size of the group associated with a communicator.