How to do?Score + 1

does anyone know the code of for example when the user drag the ball on relase if it hit the board than there will be a score counter saying 1 point the ball will fly at random speed just like throwing a basketball plss help thankzz