Index: trunk/psModules/src/objects/pmSourceIO_CMP.c
===================================================================
--- trunk/psModules/src/objects/pmSourceIO_CMP.c	(revision 11227)
+++ trunk/psModules/src/objects/pmSourceIO_CMP.c	(revision 11582)
@@ -3,6 +3,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-01-22 01:12:06 $
+ *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-02-02 19:55:15 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -42,5 +42,5 @@
 {
 
-    int i, type, nSrc;
+    int i, type;
     // psMetadataItem *mdi;
     psF32 *PAR, *dPAR;
@@ -54,14 +54,4 @@
     if (!status)
         ZERO_POINT = 25.0;
-
-    // count the number of sources which will be written
-    for (i = nSrc = 0; i < sources->n; i++) {
-        pmSource *source = (pmSource *) sources->data[i];
-        pmModel *model = pmSourceSelectModel (source);
-        if (model == NULL)
-            continue;
-        nSrc ++;
-    }
-    psMetadataAdd (header, PS_LIST_TAIL, "NSTARS", PS_DATA_S32 | PS_META_REPLACE, "NUMBER OF STARS", nSrc);
 
     // MEF elements have XTENSION, not SIMPLE: remove this (replace with SIMPLE)
