Using Android Studio, how can I create a value which will increase its value by 1 every time a button is clicked? : <p>I am currently working on an app for a project in University and am seeking to find out how to increase a variable value by 1 when a button is clicked. The app I am building is a sports app, and my idea is that when a button titled "Goal" is pressed that the value of "Goal" will be increased by 1.</p>

<p>I am also going to be putting this information into a Firebase real-time database so if you have any knowledge on how I could also do this would be very helpful. Thanks very much.</p>
