Index: trunk/psphot/src/psphotStackMatchPSFs.c
===================================================================
--- trunk/psphot/src/psphotStackMatchPSFs.c	(revision 29548)
+++ trunk/psphot/src/psphotStackMatchPSFs.c	(revision 29936)
@@ -8,6 +8,5 @@
     psAssert(recipe, "We've thrown an error on this before.");
 
-    int num = psMetadataLookupS32 (&status, config->arguments, "PSPHOT.INPUT.NUM");
-    psAssert (status, "programming error: must define PSPHOT.INPUT.NUM");
+    int num = psphotFileruleCount(config, "PSPHOT.INPUT");
 
     // 'options' carries info needed to perform the stack matching
