Creating a count button

How do i code a button to count between numbers?
eg. 1 to 10
Each tap will count
so every time the button is pressed it will show 1 in the text box then pressed again it will show 2 and so forth

Something like this:


will give this a try