diff --git a/MagickCore/string.c b/MagickCore/string.c
index 86692e5..a12aece 100644
--- a/MagickCore/string.c
+++ b/MagickCore/string.c
@@ -1114,6 +1114,7 @@
 #endif
   for (i=0; (length >= bytes) && (units[i+1] != (const char *) NULL); i++)
     length/=bytes;
+  count=0;
   for (j=2; j < 12; j++)
   {
     count=FormatLocaleString(format,MaxTextExtent,"%.*g%sB",(int) (i+j),length,