+
+void smpi_mpi_get_count(MPI_Status *status, MPI_Datatype datatype, int *count) {
+ int size = smpi_datatype_size(datatype);
+ *count = (int)(status->_count / size);
+ if ( (int)((*count) * size) != status->_count )
+ *count = MPI_UNDEFINED;
+}
+
+