I would guess that AO Services::x refers to a global field. Values in global fields are specific to the email client and this change of a global field on the server would not appear in x unless your client closed the file and then re-opened it.
If you are trying to pass a found count back to the client machine, I suggest using:
Exist Script [ Get ( foundcount) ]
In this script and then in the script that uses Perform Script on Server, use Get ( ScriptResult ) to access this value.