xxxxxxxxxx
#You must annouce a variable as global
function_uses = 0
def function():
#To do that type this:
global function_uses
#global <var>
print('This is a function')
function_uses += 1
xxxxxxxxxx
#just use the global keyword
#EXAMPLE
counter = 0
def add()
global counter
counter += 1
return counter
print(add())