How do a while loop terminates without proper terminating condition? : [how do while terminates when count becomes 0 without a condition like count!=0]

    `#include<stdio.h>
    static int count=5;

    void func(void);

    void main()
    {
	    while(count--)
		func();
    } 

    void func(void)
    {
	    static int i=5;
	    i++;
	    printf("%d\t%d\n",i,count);
    }`
	

  [1]: https://i.stack.imgur.com/KbXOd.png