How to count how many times function was called without using global variable?

Hello! I want to have a several instances of N_function, each instance recieve different values. So I need to count how many times was each instance called. Thats because this value is itself an argument. But local variables inside functions becoming default after each call. So maybe there is some version of static variables inside function to count calls. I really don’t want to create global variables inside blueprint like… int count_0, int count_1 … for each instance of my function. Do you have any ideas? Maybe something abs different? Thanks!

HI there! I found the way! Now I’m using Blueprint Actor Component as function. This allows me to have as many instances of function (with separate function call-counters) as I need inside Parent BP.