Added scripting in setProperty action, add nbOfVisits counter