Index: trunk/psphot/src/psphotReadoutCleanup.c
===================================================================
--- trunk/psphot/src/psphotReadoutCleanup.c	(revision 11315)
+++ trunk/psphot/src/psphotReadoutCleanup.c	(revision 11583)
@@ -28,4 +28,7 @@
     }
 
+    // write NSTARS to the image header
+    psphotSetHeaderNstars (recipe, sources);
+
     // create an output header with stats results
     psMetadata *header = psphotDefineHeader (recipe);
