Having problem with touch input

I have built a small Android game by unity. In which, when the player touch the screen a pin spawns. The problem I am having is, when I touch the screen, instead of one, two pin spawns at a time. I used this code-

 if(Input.touchCount == 1)
        {
            Spawnpin();
        }

It depends on which function your if statement is run, and also the contents of the Spawnpin function. Could you please share more information?