diff --git a/src/constants.c b/src/constants.c
index 77fead603ba3320ead8417395d03f0d6c6c190ca..d177bf3e3ae4afd31c6d6449fccfb341f4a81b41 100644
--- a/src/constants.c
+++ b/src/constants.c
@@ -147,9 +147,10 @@ void count_memory_in_constants(INT32 *num_, INT32 *size_)
   INT32 size=0, num=0;
   if(efun_hash)
   {
-    size+=sizeof(struct hash_table) +
+    size=sizeof(struct hash_table) +
       efun_hash->mask*sizeof(struct hash_entry)+
     efun_hash->entries*sizeof(struct efun);
+    num=efun_hash->entries;
   }
   *num_=num;
   *size_=size;