Need help building a counter in C inside a do while loop : I am trying to keep a count of how many times the operation inside the do-while loop is repeating, but the counter only shows 1 each time. Can anyone tell me where is my mistake? I have provided the code here.

    #include <stdio.h>
    #include <math.h>

    int main(void)
    {
        double i = 84;
        int counter = 0;
        do {
            counter++;
            i = fmod(i, 25.0);
            
            }
        while(i > 25);
        printf("Counter: %i\n %lf\n", counter, i);
    }