Isolate screen taps from button clicks

I’m counting screen taps in my app using
(Input.touchCount == 1 && Input.GetTouch (0).phase == TouchPhase.Ended))

I also have some buttons in my interface, I used both OnGUI buttons, as well as NGUI buttons with box colliders.

Is there any way to exclude tap counts when pressing on the buttons?

It’s not hard. You only need to worry about leaving DISABLED conditions that enable the specific location you want to isolate. Do not think in general, consider each one individually.