I'm having a problem getting the counter value back

Friend, for you to have more help, faster, you must describe in detail:
What does this routine do?
What is the behavior of this routine?
Is there an error message? …

:point_down:

:+1: