Using a global variable would probably be best here, but if you want to use an array it would be something like this:
player on collision with finish
trigger once
-array set value at 0,0 : array.At(0,0)+1
system every tick
text set text : "score: "& array.At(0,0)