Holding touch screen for increase speed?

I need to create in which if the player hold on the screen, the character speed will increase gradually.

What should I use to achieve this?

thank you

The simplest way would be to check if there is anything touching the screen.

    void Update() {
        if(Input.touchCount > 0) {
            // Accelerate
        } else {
            // Decelerate to 0
        }
    }