#include <stdio.h>
 
int howManyTimes() {
    static int counter = 0;
 
    return ++counter;
}
 
int main() {
    printf("Function has been called %d times\n", howManyTimes());
    printf("Function has been called %d times\n", howManyTimes());
    printf("Function has been called %d times\n", howManyTimes());
    printf("Function has been called %d times\n", howManyTimes());
    printf("Function has been called %d times\n", howManyTimes());
 
    return 0;
}