add touch down count function