Use of globals in UDFs are evil and almost always unnecessary. Values should be passed by parms and returned by the function.
Code:
break on
$Count = 1

for $X = 1 to 10
$Count = Increase($Count)
$Count ?
next
?
for $X = 1 to 10
$Count = Decrease($Count)
$Count ?
next

Function Increase($count)
$count = $count+1
$Increase = $count
EndFunction

Function Decrease($count)
$count = $count-1
$Decrease = $count
EndFunction

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.