How can I generate signals after clicking the button for 10times ?