Index: /branches/eam_branches/ipp-20101205/psphot/src/psphotOutput.c
===================================================================
--- /branches/eam_branches/ipp-20101205/psphot/src/psphotOutput.c	(revision 30097)
+++ /branches/eam_branches/ipp-20101205/psphot/src/psphotOutput.c	(revision 30098)
@@ -15,4 +15,16 @@
     psFree (name);
     return num;
+}
+
+// convert filerule to filerule.NUM and look up in the config->arguments metadata
+bool psphotFileruleCountSet(const pmConfig *config, const char *filerule, int num) {
+
+    psString name = NULL;
+    psStringAppend(&name, "%s.NUM", filerule);
+
+    bool status = psMetadataAddS32(config->arguments, PS_LIST_TAIL, name, PS_META_REPLACE, "", num);
+    psFree (name);
+
+    return status;
 }
 
