Counting score problem

I created a function that count a score a obejct colides with a sensor

[lua]
score = 0

local function Score(self,event)

if self.myName == “box1” and event.other.myName == “linhaChegada” then

score = score + 1
print(score)
–elseif ( event.phase == “ended” ) then

end
[/lua]
the problem is the result are always the number two and not number one if a change score = score + 5 the result is ten and not five.
Whats happen? [import]uid: 154714 topic_id: 36403 reply_id: 336403[/import]