Input.touchCount works in one script but not the other

Hello everyone,
I’m coding an android-app which is based on the Google ARCore test scene for CloudAnchors. I made another script which should also work with touch inputs.
Somehow, the code in the CloudAnchorController script works, but in my code, Input.touchCount ist ALWAYS 0.
Can anyone help?

void Update ()
{
    Debug.Log(Input.touchCount);       
}

if you can provide more details that would be better at this stage I can only give you suggestion that, make sure you attached both the scripts to some gameobject in the hierarchy.