cocos simple function to count the touch input