Using the NXT brick, the touch sensor detects pressure, i.e. when the button is pressed or released.
The sensor is also able to count single and multiple presses. A LEGO cross axle can be attached to the sensor button.
You will need a connector cable, which is included in the LEG9797 Base Set. 8+